diff --git a/include/anope.h b/include/anope.h index 83f45d39b..1056c05ca 100644 --- a/include/anope.h +++ b/include/anope.h @@ -156,6 +156,12 @@ namespace Anope */ inline size_type length() const { return this->_string.length(); } + /** + * Returns the size of the currently allocated storage space in the string object. + * This can be equal or greater than the length of the string. + */ + inline size_type capacity() const { return this->_string.capacity(); } + /** * Add a char to the end of the string. */