String: add non const front() and back() methods

This commit is contained in:
Maxime Coste 2012-11-23 18:41:33 +01:00
parent 6a7193cf63
commit 53be5c87d2

View File

@ -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); }