1
0
mirror of https://github.com/anope/anope.git synced 2026-07-03 10:53:12 +02:00

added a Anope::string::capacity() function

This commit is contained in:
DukePyrolator
2011-06-12 06:28:22 +02:00
parent 717b4c3406
commit 6148ffa669
+6
View File
@@ -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.
*/