String: add non const front() and back() methods
This commit is contained in:
parent
6a7193cf63
commit
53be5c87d2
|
@ -66,6 +66,8 @@ public:
|
||||||
|
|
||||||
char front() const { return m_content.front(); }
|
char front() const { return m_content.front(); }
|
||||||
char back() const { return m_content.back(); }
|
char back() const { return m_content.back(); }
|
||||||
|
char& front() { return m_content.front(); }
|
||||||
|
char& back() { return m_content.back(); }
|
||||||
|
|
||||||
size_t hash() const { return std::hash<std::string>()(m_content); }
|
size_t hash() const { return std::hash<std::string>()(m_content); }
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user