A compile‐time fixed string
Synopsis
Declared in <mp‐units/ext/fixed_string.h>
template<
typename CharT,
std::size_t N>
class basic_fixed_string
: public /* implementation-defined */
Base Classes
Name |
Description |
|
Type Aliases
Name |
Description |
Constant iterator over the string's elements |
|
Pointer to a constant character of the string |
|
Reference to a constant character of the string |
|
Reverse iterator over the string's constant elements |
|
Signed integer type used to represent iterator differences |
|
Iterator type (same as |
|
Pointer to a character of the string |
|
Reference to a character of the string |
|
Reverse iterator type (same as |
|
Unsigned integer type used to represent sizes and indices |
|
The character type used by the string |
Member Functions
Name |
Description |
|
Constructors |
Copy assignment operator |
|
Accesses the character at the given position, with bounds checking |
|
The last character of the string. |
|
An iterator to the first character of the string. |
|
A pointer to a null‐terminated character array holding the string's contents. |
|
A constant iterator to the first character of the string. |
|
A constant iterator past the last character of the string. |
|
A constant reverse iterator to the last character of the string. |
|
A constant reverse iterator preceding the first character of the string. |
|
A pointer to the underlying null‐terminated character array. |
|
An iterator past the last character of the string. |
|
The first character of the string. |
|
Accesses the character at the given position, without bounds checking |
|
A reverse iterator to the last character of the string. |
|
A reverse iterator preceding the first character of the string. |
|
Exchanges the contents of this string with those of |
|
A |
|
Implicit conversion to a |
Data Members
Name |
Description |
The underlying null‐terminated character storage (exposition only) |
Static Data Members
Name |
Description |
Whether the string holds no characters |
|
The number of characters in the string (same as |
|
The maximum number of characters the string can hold (same as |
|
The number of characters in the string |
Deduction Guides
Name |
Description |
|
Deduces |
Deduces |
|
Deduces |
Template Parameters
Name |
Description |
CharT |
Character type to be used by the string |
N |
The size of the string |
Created with MrDocs