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:
@@ -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.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user