An implementation of std::basic_string_view for pre‐C++17 providing a subset of the API. fmt::basic_string_view is used in the public API even if std::basic_string_view is available to prevent issues when a library is compiled with a different ‐std option than the client code (which is not recommended).
Synopsis
Declared in <fmt/base.h>
template<typename Char>
class basic_string_view;
Type Aliases
Name |
Description |
The iterator type used to traverse the string view. |
|
The character type stored in the string view. |
Member Functions
Name |
Description |
|
Constructors |
An iterator to the first character of the view. |
|
Lexicographically compares this view with |
|
A pointer to the first character of the view. |
|
An iterator past the last character of the view. |
|
A reference to the character at |
|
Removes the first |
|
The number of characters in the view. |
|
|
Friends
Name |
Description |
|
|
|
|
|
|
|
|
|
|
|
Non-Member Functions
Name |
Description |
A deprecated |
|
Formats |
|
Formats |
Created with MrDocs