summaryrefslogtreecommitdiff
path: root/src/libs/utils/smallstringview.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/libs/utils/smallstringview.h')
-rw-r--r--src/libs/utils/smallstringview.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libs/utils/smallstringview.h b/src/libs/utils/smallstringview.h
index 6052ff8777..911ba2eafd 100644
--- a/src/libs/utils/smallstringview.h
+++ b/src/libs/utils/smallstringview.h
@@ -179,6 +179,10 @@ public:
return m_pointer[0] == characterToSearch;
}
+ char back() const { return m_pointer[m_size - 1]; }
+
+ char operator[](std::size_t index) { return m_pointer[index]; }
+
private:
const char *m_pointer = "";
size_type m_size = 0;