fmt::basic_string_view

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
iterator
value_type

Member Functions

NameDescription
basic_string_view [constructor]Constructors
begin
compare
data
end
operator[]
remove_prefix
size
starts_with

Friends

NameDescription
fmt::operator>=Greater-than-or-equal operator
fmt::operator>Greater-than operator
fmt::operator<=Less-than-or-equal operator
fmt::operator<Less-than operator
fmt::operator!=Inequality operator
fmt::operator==Equality operator