...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
The type representing the reason string in a close frame.
Defined in header <boost/beast/websocket/rfc6455.hpp>
using reason_string = static_string< 123, char >;
Name |
Description |
---|---|
The type of |
|
Name |
Description |
---|---|
Assign |
|
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. |
|
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). |
|
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.