...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 string_view returned by the interface. |
|
Name |
Description |
---|---|
Assign count copies of ch. Assign from another static_string Assign count characterss starting at npos from other. Assign the first count characters of s, including nulls. Assign a null terminated string. Assign from an iterator range of characters. Assign from any object convertible to string_view_type. |
|
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 dest. |
|
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 true if the string is empty. |
|
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 string_view_type |
|
Copy assignment. Assign from null-terminated string. Assign from single character. Assign from initializer list. Assign from string_view_type. |
|
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 ch. Construct with a substring (pos, other.size()) of other. Construct with a substring (pos, count) of other. Construct with the first count characters of s, including nulls. Construct from a null terminated string. Construct from a range of characters. Copy constructor. Construct from an initializer list. Construct from a string_view Construct from any object convertible to string_view_type. |
|
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.
Convenience header <boost/beast/websocket.hpp>