![]() |
Home | Libraries | People | FAQ | More |
A modifiable string with a fixed-size storage area.
Defined in header <boost/beast/core/static_string.hpp>
template< std::size_t N, class CharT = char, class Traits = std::char_traits<CharT>> class static_string
Name |
Description |
---|---|
The type of |
|
Name |
Description |
---|---|
Assign
Assign from another
Assign
Assign the first Assign a null terminated string. Assign from an iterator range of characters. Assign from initializer list.
Assign from
Assign from any object convertible to |
|
Access specified character with bounds checking. |
|
Accesses the last character. |
|
Returns an iterator to the beginning. |
|
Returns a non-modifiable standard C character array version of the string. |
|
Returns the number of characters that can be held in currently allocated storage. |
|
Returns an iterator to the beginning. |
|
Returns an iterator to the end. |
|
Clears the contents. |
|
Copy a substring (pos, pos+count) to character string pointed to
by |
|
Returns a reverse iterator to the beginning. |
|
Returns a reverse iterator to the end. |
|
Returns a pointer to the first character of a string. |
|
Returns |
|
Returns an iterator to the end. |
|
Accesses the first character. |
|
Returns the number of characters, excluding the null terminator. |
|
Returns the maximum number of characters that can be stored, excluding the null terminator. |
|
Convert a static string to a |
|
Copy assignment. Assign from null-terminated string. Assign from single character. Assign from initializer list.
Assign from |
|
Access specified character. |
|
Returns a reverse iterator to the beginning. |
|
Returns a reverse iterator to the end. |
|
Reserves storage. |
|
Changes the number of characters stored. |
|
Reduces memory usage by freeing unused memory. |
|
Returns the number of characters, excluding the null terminator. |
|
Default constructor (empty string).
Construct with count copies of character
Construct with a substring (pos, other.size()) of
Construct with a substring (pos, count) of
Construct with the first Construct from a null terminated string. Construct from a range of characters. Copy constructor. Construct from an initializer list.
Construct from a
Construct from any object convertible to |
|
Exchange the contents of this string with another. |
Name |
Description |
---|---|
Maximum size of the string excluding the null terminator. |
|
A special index. |
These objects behave like std::string
except that the storage is not dynamically allocated but rather fixed in
size. These strings offer performance advantages when a protocol imposes
a natural small upper limit on the size of a value.
The stored string is always null-terminated.