Roboruka
Knihovna pro obsluhu RoboRuky.
Veřejné metody | Seznam všech členů
Dokumentace šablony třídy basic_string_view< Char >

#include <core.h>

Veřejné metody

FMT_CONSTEXPR basic_string_view (const Char *s, size_t count) FMT_NOEXCEPT
 
 basic_string_view (const Char *s)
 
template<typename Traits , typename Alloc >
FMT_CONSTEXPR basic_string_view (const std::basic_string< Char, Traits, Alloc > &s) FMT_NOEXCEPT
 
FMT_CONSTEXPR const Char * data () const
 
FMT_CONSTEXPR size_t size () const
 

Detailní popis

template<typename Char>
class basic_string_view< Char >

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::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).

Dokumentace konstruktoru a destruktoru

◆ basic_string_view() [1/3]

template<typename Char >
FMT_CONSTEXPR basic_string_view< Char >::basic_string_view ( const Char *  s,
size_t  count 
)
inline

Constructs a string reference object from a C string and a size.

◆ basic_string_view() [2/3]

template<typename Char >
basic_string_view< Char >::basic_string_view ( const Char *  s)
inline

\rst Constructs a string reference object from a C string computing the size with std::char_traits<Char>::length. \endrst

◆ basic_string_view() [3/3]

template<typename Char >
template<typename Traits , typename Alloc >
FMT_CONSTEXPR basic_string_view< Char >::basic_string_view ( const std::basic_string< Char, Traits, Alloc > &  s)
inline

Constructs a string reference from a std::basic_string object.

Dokumentace k metodám

◆ data()

template<typename Char >
FMT_CONSTEXPR const Char * basic_string_view< Char >::data ( ) const
inline

Returns a pointer to the string data.

◆ size()

template<typename Char >
FMT_CONSTEXPR size_t basic_string_view< Char >::size ( ) const
inline

Returns the string size.


Dokumentace pro tuto třídu byla vygenerována z následujícího souboru: