fmt::basic_string_view

An implementation of std::basic_string_view for pre-C++17. It provides a subset of the API. fmt::basic_string_view is used for format strings 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;


Types

Name
iterator
value_type

Member Functions

Name Description
basic_string_view [constructor]Constructors
begin
compare
data Returns a pointer to the string data.
end
operator[]
remove_prefix
size Returns the string size.
starts_with

Friends

|===
Name Description
operator>= Greater-than-or-equal operator
operator> Greater-than operator
operator<= Less-than-or-equal operator
operator< Less-than operator
operator!= Inequality operator
operator== Equality operator

Created with MrDocs