HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
basic_string_view< Char > Class Template Reference

#include <core.h>

Public Types

using value_type = Char
 
using iterator = const Char *
 
using charT = CharT
 
using traits_type = Traits
 
using value_type = CharT
 
using pointer = const CharT *
 
using const_pointer = const CharT *
 
using reference = const CharT &
 
using const_reference = const CharT &
 
using const_iterator = const_pointer
 
using iterator = const_iterator
 
using const_reverse_iterator = std::reverse_iterator< const_iterator >
 
using reverse_iterator = const_reverse_iterator
 
using size_type = size_t
 
using difference_type = ptrdiff_t
 
using traits = std::char_traits< CharT >
 
using string = std::basic_string< CharT, Traits >
 

Public Member Functions

constexpr basic_string_view () noexcept
 
constexpr basic_string_view (const Char *s, size_t count) noexcept
 
FMT_CONSTEXPR_CHAR_TRAITS
FMT_INLINE 
basic_string_view (const Char *s)
 
template<typename Traits , typename Alloc >
FMT_CONSTEXPR basic_string_view (const std::basic_string< Char, Traits, Alloc > &s) noexcept
 
template<typename S , FMT_ENABLE_IF(std::is_same< S, detail::std_string_view< Char >>::value) >
FMT_CONSTEXPR basic_string_view (S s) noexcept
 
constexpr auto data () const noexcept-> const Char *
 
constexpr auto size () const noexcept-> size_t
 
constexpr auto begin () const noexcept-> iterator
 
constexpr auto end () const noexcept-> iterator
 
constexpr auto operator[] (size_t pos) const noexcept-> const Char &
 
FMT_CONSTEXPR void remove_prefix (size_t n) noexcept
 
FMT_CONSTEXPR_CHAR_TRAITS bool starts_with (basic_string_view< Char > sv) const noexcept
 
FMT_CONSTEXPR_CHAR_TRAITS bool starts_with (Char c) const noexcept
 
FMT_CONSTEXPR_CHAR_TRAITS bool starts_with (const Char *s) const
 
FMT_CONSTEXPR_CHAR_TRAITS auto compare (basic_string_view other) const -> int
 
constexpr basic_string_view () noexcept
 Default ctr. More...
 
constexpr basic_string_view (const basic_string_view &copy)
 Copy ctr. More...
 
constexpr basic_string_view (const CharT *chars, size_t len) noexcept
 Construct from char* and length. More...
 
constexpr basic_string_view (const CharT *chars) noexcept
 Construct from char*, use strlen to determine length. More...
 
 basic_string_view (const string &str) noexcept
 
OIIO_CONSTEXPR20 string str () const
 
const CharT * c_str () const
 
OIIO_CONSTEXPR14
basic_string_view
operator= (const basic_string_view &copy) noexcept=default
 
 operator std::basic_string< CharT, Traits > () const
 Convert a string_view to a std::string. More...
 
constexpr iterator begin () const noexcept
 
constexpr iterator end () const noexcept
 
constexpr const_iterator cbegin () const noexcept
 
constexpr const_iterator cend () const noexcept
 
OIIO_CONSTEXPR17 reverse_iterator rbegin () const noexcept
 
OIIO_CONSTEXPR17 reverse_iterator rend () const noexcept
 
OIIO_CONSTEXPR17
const_reverse_iterator 
crbegin () const noexcept
 
OIIO_CONSTEXPR17
const_reverse_iterator 
crend () const noexcept
 
constexpr size_type size () const noexcept
 
constexpr size_type length () const noexcept
 
constexpr size_type max_size () const noexcept
 
constexpr bool empty () const noexcept
 Is the basic_string_view empty, containing no characters? More...
 
constexpr const_reference operator[] (size_type pos) const
 
OIIO_CONSTEXPR17 const_reference at (size_t pos) const
 Element access with bounds checking and exception if out of bounds. More...
 
constexpr const_reference front () const
 
constexpr const_reference back () const
 
constexpr const_pointer data () const noexcept
 
OIIO_CONSTEXPR14 void clear () noexcept
 
OIIO_CONSTEXPR14 void remove_prefix (size_type n) noexcept
 
OIIO_CONSTEXPR14 void remove_suffix (size_type n) noexcept
 
OIIO_CONSTEXPR14 basic_string_view substr (size_type pos, size_type n=npos) const noexcept
 
OIIO_CONSTEXPR17 int compare (basic_string_view x) const noexcept
 
size_type find (basic_string_view s, size_t pos=0) const noexcept
 
size_type find (CharT c, size_t pos=0) const noexcept
 
size_type rfind (basic_string_view s, size_t pos=npos) const noexcept
 
size_type rfind (CharT c, size_t pos=npos) const noexcept
 
size_type find_first_of (CharT c, size_t pos=0) const noexcept
 
size_type find_last_of (CharT c, size_t pos=npos) const noexcept
 
size_type find_first_of (basic_string_view s, size_t pos=0) const noexcept
 
size_type find_last_of (basic_string_view s, size_t pos=npos) const noexcept
 
size_type find_first_not_of (basic_string_view s, size_t pos=0) const noexcept
 
size_type find_first_not_of (CharT c, size_t pos=0) const noexcept
 
size_type find_last_not_of (basic_string_view s, size_t pos=npos) const noexcept
 
size_type find_last_not_of (CharT c, size_t pos=npos) const noexcept
 

Static Public Attributes

static const size_type npos = ~size_type(0)
 

Friends

FMT_CONSTEXPR_CHAR_TRAITS
friend auto 
operator== (basic_string_view lhs, basic_string_view rhs) -> bool
 
auto operator!= (basic_string_view lhs, basic_string_view rhs) -> bool
 
auto operator< (basic_string_view lhs, basic_string_view rhs) -> bool
 
auto operator<= (basic_string_view lhs, basic_string_view rhs) -> bool
 
auto operator> (basic_string_view lhs, basic_string_view rhs) -> bool
 
auto operator>= (basic_string_view lhs, basic_string_view rhs) -> bool
 
OIIO_CONSTEXPR17 bool operator== (basic_string_view x, basic_string_view y) noexcept
 
OIIO_CONSTEXPR17 bool operator!= (basic_string_view x, basic_string_view y) noexcept
 
OIIO_CONSTEXPR17 bool operator< (basic_string_view x, basic_string_view y) noexcept
 
OIIO_CONSTEXPR17 bool operator> (basic_string_view x, basic_string_view y) noexcept
 
OIIO_CONSTEXPR17 bool operator<= (basic_string_view x, basic_string_view y) noexcept
 
OIIO_CONSTEXPR17 bool operator>= (basic_string_view x, basic_string_view y) noexcept
 
std::basic_ostream< CharT,
Traits > & 
operator<< (std::basic_ostream< CharT, Traits > &out, const basic_string_view &str)
 

Detailed Description

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

A string_view is a non-owning, non-copying, non-allocating reference to a sequence of characters. It encapsulates both a character pointer and a length. This is analogous to C++17 std::string_view, but supports C++14.

Note: string_view is an alias for basic_string_view<char>.

A function that takes a string input (but does not need to alter the string in place) may use a string_view parameter and accept input that is any of char* (C string), string literal (constant char array), a std::string (C++ string), or OIIO ustring. For all of these cases, no extra allocations are performed, and no extra copies of the string contents are performed (as they would be, for example, if the function took a const std::string& argument but was passed a char* or string literal).

Furthermore, a function that returns a copy or a substring of one of its inputs (for example, a substr()-like function) may return a string_view rather than a std::string, and thus generate its return value without any allocation or copying. Upon assignment to a std::string or ustring, it will properly auto-convert.

There are two important caveats to using this class:

  1. The string_view merely refers to characters owned by another string, so the string_view may not be used outside the lifetime of the string it refers to. Thus, string_view is great for parameter passing, but it's not a good idea to use a string_view to store strings in a data structure (unless you are really sure you know what you're doing).
  2. Because the run of characters that the string_view refers to may not be 0-terminated, it is important to distinguish between the data() method, which returns the pointer to the characters, and a proper c_str() method (which is NOT provided by std::string_view), which would be guaranteed to return a valid C string that is 0-terminated. Thus, if you want to pass the contents of a string_view to a function that expects a 0-terminated string (say, fopen), the usual practice is to call fopen(std::string(my_string_view).c_str()).

Definition at line 398 of file core.h.

Member Typedef Documentation

template<typename Char>
using basic_string_view< Char >::charT = CharT

Definition at line 80 of file string_view.h.

template<typename Char>
using basic_string_view< Char >::const_iterator = const_pointer

Definition at line 87 of file string_view.h.

template<typename Char>
using basic_string_view< Char >::const_pointer = const CharT*

Definition at line 84 of file string_view.h.

template<typename Char>
using basic_string_view< Char >::const_reference = const CharT&

Definition at line 86 of file string_view.h.

template<typename Char>
using basic_string_view< Char >::const_reverse_iterator = std::reverse_iterator<const_iterator>

Definition at line 89 of file string_view.h.

template<typename Char>
using basic_string_view< Char >::difference_type = ptrdiff_t

Definition at line 92 of file string_view.h.

template<typename Char>
using basic_string_view< Char >::iterator = const_iterator

Definition at line 88 of file string_view.h.

template<typename Char>
using basic_string_view< Char >::iterator = const Char*

Definition at line 405 of file core.h.

template<typename Char>
using basic_string_view< Char >::pointer = const CharT*

Definition at line 83 of file string_view.h.

template<typename Char>
using basic_string_view< Char >::reference = const CharT&

Definition at line 85 of file string_view.h.

template<typename Char>
using basic_string_view< Char >::reverse_iterator = const_reverse_iterator

Definition at line 90 of file string_view.h.

template<typename Char>
using basic_string_view< Char >::size_type = size_t

Definition at line 91 of file string_view.h.

template<typename Char>
using basic_string_view< Char >::string = std::basic_string<CharT, Traits>

Definition at line 94 of file string_view.h.

template<typename Char>
using basic_string_view< Char >::traits = std::char_traits<CharT>

Definition at line 93 of file string_view.h.

template<typename Char>
using basic_string_view< Char >::traits_type = Traits

Definition at line 81 of file string_view.h.

template<typename Char>
using basic_string_view< Char >::value_type = CharT

Definition at line 82 of file string_view.h.

template<typename Char>
using basic_string_view< Char >::value_type = Char

Definition at line 404 of file core.h.

Constructor & Destructor Documentation

template<typename Char>
constexpr basic_string_view< Char >::basic_string_view ( )
inlinenoexcept

Definition at line 407 of file core.h.

template<typename Char>
constexpr basic_string_view< Char >::basic_string_view ( const Char *  s,
size_t  count 
)
inlinenoexcept

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

Definition at line 410 of file core.h.

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

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

Definition at line 421 of file core.h.

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)
inlinenoexcept

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

Definition at line 430 of file core.h.

template<typename Char>
template<typename S , FMT_ENABLE_IF(std::is_same< S, detail::std_string_view< Char >>::value) >
FMT_CONSTEXPR basic_string_view< Char >::basic_string_view ( S  s)
inlinenoexcept

Definition at line 436 of file core.h.

template<typename Char>
constexpr basic_string_view< Char >::basic_string_view ( )
inlinenoexcept

Default ctr.

Definition at line 98 of file string_view.h.

template<typename Char>
constexpr basic_string_view< Char >::basic_string_view ( const basic_string_view< Char > &  copy)
inline

Copy ctr.

Definition at line 101 of file string_view.h.

template<typename Char>
constexpr basic_string_view< Char >::basic_string_view ( const CharT *  chars,
size_t  len 
)
inlinenoexcept

Construct from char* and length.

Definition at line 105 of file string_view.h.

template<typename Char>
constexpr basic_string_view< Char >::basic_string_view ( const CharT *  chars)
inlinenoexcept

Construct from char*, use strlen to determine length.

Definition at line 109 of file string_view.h.

template<typename Char>
basic_string_view< Char >::basic_string_view ( const string str)
inlinenoexcept

Construct from std::string. Remember that a string_view doesn't have its own copy of the characters, so don't use the string_view after the original string has been destroyed or altered.

Definition at line 115 of file string_view.h.

Member Function Documentation

template<typename Char>
OIIO_CONSTEXPR17 const_reference basic_string_view< Char >::at ( size_t  pos) const
inline

Element access with bounds checking and exception if out of bounds.

Definition at line 215 of file string_view.h.

template<typename Char>
constexpr const_reference basic_string_view< Char >::back ( void  ) const
inline

Definition at line 222 of file string_view.h.

template<typename Char>
constexpr iterator basic_string_view< Char >::begin ( void  ) const
inlinenoexcept

Definition at line 193 of file string_view.h.

template<typename Char>
constexpr auto basic_string_view< Char >::begin ( void  ) const -> iterator
inlinenoexcept

Definition at line 445 of file core.h.

template<typename Char>
const CharT* basic_string_view< Char >::c_str ( ) const

Explicitly request a 0-terminated string. USUALLY, this turns out to be just data(), with no significant added expense (because most uses of string_view are simple wrappers of C strings, C++ std::string, or ustring – all of which are 0-terminated). But in the more rare case that the string_view represents a non-0-terminated substring, it will force an allocation and copy underneath.

Caveats:

  1. This is NOT going to be part of the C++17 std::string_view, so it's probably best to avoid this method if you want to have 100% drop-in compatibility with std::string_view.
  2. It is NOT SAFE to use c_str() on a string_view whose last char is the end of an allocation – because that next char may only coincidentally be a '\0', which will cause c_str() to return the string start (thinking it's a valid C string, so why not just return its address?), if there's any chance that the subsequent char could change from 0 to non-zero during the use of the result of c_str(), and thus break the assumption that it's a valid C str.
template<typename Char>
constexpr const_iterator basic_string_view< Char >::cbegin ( ) const
inlinenoexcept

Definition at line 195 of file string_view.h.

template<typename Char>
constexpr const_iterator basic_string_view< Char >::cend ( ) const
inlinenoexcept

Definition at line 196 of file string_view.h.

template<typename Char>
OIIO_CONSTEXPR14 void basic_string_view< Char >::clear ( )
inlinenoexcept

Definition at line 226 of file string_view.h.

template<typename Char>
OIIO_CONSTEXPR17 int basic_string_view< Char >::compare ( basic_string_view< Char >  x) const
inlinenoexcept

Definition at line 250 of file string_view.h.

template<typename Char>
FMT_CONSTEXPR_CHAR_TRAITS auto basic_string_view< Char >::compare ( basic_string_view< Char >  other) const -> int
inline

Definition at line 470 of file core.h.

template<typename Char>
OIIO_CONSTEXPR17 const_reverse_iterator basic_string_view< Char >::crbegin ( ) const
inlinenoexcept

Definition at line 199 of file string_view.h.

template<typename Char>
OIIO_CONSTEXPR17 const_reverse_iterator basic_string_view< Char >::crend ( ) const
inlinenoexcept

Definition at line 200 of file string_view.h.

template<typename Char>
constexpr const_pointer basic_string_view< Char >::data ( ) const
inlinenoexcept

Definition at line 223 of file string_view.h.

template<typename Char>
constexpr auto basic_string_view< Char >::data ( ) const -> const Char*
inlinenoexcept

Returns a pointer to the string data.

Definition at line 440 of file core.h.

template<typename Char>
constexpr bool basic_string_view< Char >::empty ( void  ) const
inlinenoexcept

Is the basic_string_view empty, containing no characters?

Definition at line 209 of file string_view.h.

template<typename Char>
constexpr iterator basic_string_view< Char >::end ( void  ) const
inlinenoexcept

Definition at line 194 of file string_view.h.

template<typename Char>
constexpr auto basic_string_view< Char >::end ( void  ) const -> iterator
inlinenoexcept

Definition at line 446 of file core.h.

template<typename Char>
size_type basic_string_view< Char >::find ( basic_string_view< Char >  s,
size_t  pos = 0 
) const
inlinenoexcept

Find the first occurrence of substring s in *this, starting at position pos.

Definition at line 267 of file string_view.h.

template<typename Char>
size_type basic_string_view< Char >::find ( CharT  c,
size_t  pos = 0 
) const
inlinenoexcept

Find the first occurrence of character c in *this, starting at position pos.

Definition at line 278 of file string_view.h.

template<typename Char>
size_type basic_string_view< Char >::find_first_not_of ( basic_string_view< Char >  s,
size_t  pos = 0 
) const
inlinenoexcept

Definition at line 329 of file string_view.h.

template<typename Char>
size_type basic_string_view< Char >::find_first_not_of ( CharT  c,
size_t  pos = 0 
) const
inlinenoexcept

Definition at line 336 of file string_view.h.

template<typename Char>
size_type basic_string_view< Char >::find_first_of ( CharT  c,
size_t  pos = 0 
) const
inlinenoexcept

Definition at line 308 of file string_view.h.

template<typename Char>
size_type basic_string_view< Char >::find_first_of ( basic_string_view< Char >  s,
size_t  pos = 0 
) const
inlinenoexcept

Definition at line 312 of file string_view.h.

template<typename Char>
size_type basic_string_view< Char >::find_last_not_of ( basic_string_view< Char >  s,
size_t  pos = npos 
) const
inlinenoexcept

Definition at line 345 of file string_view.h.

template<typename Char>
size_type basic_string_view< Char >::find_last_not_of ( CharT  c,
size_t  pos = npos 
) const
inlinenoexcept

Definition at line 353 of file string_view.h.

template<typename Char>
size_type basic_string_view< Char >::find_last_of ( CharT  c,
size_t  pos = npos 
) const
inlinenoexcept

Definition at line 310 of file string_view.h.

template<typename Char>
size_type basic_string_view< Char >::find_last_of ( basic_string_view< Char >  s,
size_t  pos = npos 
) const
inlinenoexcept

Definition at line 320 of file string_view.h.

template<typename Char>
constexpr const_reference basic_string_view< Char >::front ( void  ) const
inline

Definition at line 221 of file string_view.h.

template<typename Char>
constexpr size_type basic_string_view< Char >::length ( void  ) const
inlinenoexcept

Definition at line 204 of file string_view.h.

template<typename Char>
constexpr size_type basic_string_view< Char >::max_size ( void  ) const
inlinenoexcept

Definition at line 205 of file string_view.h.

template<typename Char>
basic_string_view< Char >::operator std::basic_string< CharT, Traits > ( ) const
inline

Convert a string_view to a std::string.

Definition at line 166 of file string_view.h.

template<typename Char>
OIIO_CONSTEXPR14 basic_string_view& basic_string_view< Char >::operator= ( const basic_string_view< Char > &  copy)
defaultnoexcept
template<typename Char>
constexpr const_reference basic_string_view< Char >::operator[] ( size_type  pos) const
inline

Element access of an individual character (beware: no bounds checking!).

Definition at line 213 of file string_view.h.

template<typename Char>
constexpr auto basic_string_view< Char >::operator[] ( size_t  pos) const -> const Char&
inlinenoexcept

Definition at line 448 of file core.h.

template<typename Char>
OIIO_CONSTEXPR17 reverse_iterator basic_string_view< Char >::rbegin ( ) const
inlinenoexcept

Definition at line 197 of file string_view.h.

template<typename Char>
OIIO_CONSTEXPR14 void basic_string_view< Char >::remove_prefix ( size_type  n)
inlinenoexcept

Definition at line 227 of file string_view.h.

template<typename Char>
FMT_CONSTEXPR void basic_string_view< Char >::remove_prefix ( size_t  n)
inlinenoexcept

Definition at line 452 of file core.h.

template<typename Char>
OIIO_CONSTEXPR14 void basic_string_view< Char >::remove_suffix ( size_type  n)
inlinenoexcept

Definition at line 234 of file string_view.h.

template<typename Char>
OIIO_CONSTEXPR17 reverse_iterator basic_string_view< Char >::rend ( ) const
inlinenoexcept

Definition at line 198 of file string_view.h.

template<typename Char>
size_type basic_string_view< Char >::rfind ( basic_string_view< Char >  s,
size_t  pos = npos 
) const
inlinenoexcept

Find the last occurrence of substring s *this, but only those occurrences earlier than position pos.

Definition at line 288 of file string_view.h.

template<typename Char>
size_type basic_string_view< Char >::rfind ( CharT  c,
size_t  pos = npos 
) const
inlinenoexcept

Find the last occurrence of character c in *this, but only those occurrences earlier than position pos.

Definition at line 299 of file string_view.h.

template<typename Char>
constexpr size_type basic_string_view< Char >::size ( void  ) const
inlinenoexcept

Definition at line 203 of file string_view.h.

template<typename Char>
constexpr auto basic_string_view< Char >::size ( void  ) const -> size_t
inlinenoexcept

Returns the string size.

Definition at line 443 of file core.h.

template<typename Char>
FMT_CONSTEXPR_CHAR_TRAITS bool basic_string_view< Char >::starts_with ( basic_string_view< Char >  sv) const
inlinenoexcept

Definition at line 457 of file core.h.

template<typename Char>
FMT_CONSTEXPR_CHAR_TRAITS bool basic_string_view< Char >::starts_with ( Char  c) const
inlinenoexcept

Definition at line 462 of file core.h.

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

Definition at line 465 of file core.h.

template<typename Char>
OIIO_CONSTEXPR20 string basic_string_view< Char >::str ( ) const
inline

Convert a string_view to a std::string. NOTE: the str() method is not part of the C++17 std::string_view. If strict interchangeability with std::string_view is desired, you might prefer the equivalent idiom std::string(sv).

Definition at line 135 of file string_view.h.

template<typename Char>
OIIO_CONSTEXPR14 basic_string_view basic_string_view< Char >::substr ( size_type  pos,
size_type  n = npos 
) const
inlinenoexcept

Definition at line 241 of file string_view.h.

Friends And Related Function Documentation

template<typename Char>
OIIO_CONSTEXPR17 bool operator!= ( basic_string_view< Char >  x,
basic_string_view< Char >  y 
)
friend

Definition at line 370 of file string_view.h.

template<typename Char>
auto operator!= ( basic_string_view< Char >  lhs,
basic_string_view< Char >  rhs 
) -> bool
friend

Definition at line 483 of file core.h.

template<typename Char>
OIIO_CONSTEXPR17 bool operator< ( basic_string_view< Char >  x,
basic_string_view< Char >  y 
)
friend

Definition at line 376 of file string_view.h.

template<typename Char>
auto operator< ( basic_string_view< Char >  lhs,
basic_string_view< Char >  rhs 
) -> bool
friend

Definition at line 486 of file core.h.

template<typename Char>
std::basic_ostream<CharT, Traits>& operator<< ( std::basic_ostream< CharT, Traits > &  out,
const basic_string_view< Char > &  str 
)
friend

Definition at line 400 of file string_view.h.

template<typename Char>
OIIO_CONSTEXPR17 bool operator<= ( basic_string_view< Char >  x,
basic_string_view< Char >  y 
)
friend

Definition at line 388 of file string_view.h.

template<typename Char>
auto operator<= ( basic_string_view< Char >  lhs,
basic_string_view< Char >  rhs 
) -> bool
friend

Definition at line 489 of file core.h.

template<typename Char>
OIIO_CONSTEXPR17 bool operator== ( basic_string_view< Char >  x,
basic_string_view< Char >  y 
)
friend

Definition at line 364 of file string_view.h.

template<typename Char>
FMT_CONSTEXPR_CHAR_TRAITS friend auto operator== ( basic_string_view< Char >  lhs,
basic_string_view< Char >  rhs 
) -> bool
friend

Definition at line 478 of file core.h.

template<typename Char>
OIIO_CONSTEXPR17 bool operator> ( basic_string_view< Char >  x,
basic_string_view< Char >  y 
)
friend

Definition at line 382 of file string_view.h.

template<typename Char>
auto operator> ( basic_string_view< Char >  lhs,
basic_string_view< Char >  rhs 
) -> bool
friend

Definition at line 492 of file core.h.

template<typename Char>
OIIO_CONSTEXPR17 bool operator>= ( basic_string_view< Char >  x,
basic_string_view< Char >  y 
)
friend

Definition at line 394 of file string_view.h.

template<typename Char>
auto operator>= ( basic_string_view< Char >  lhs,
basic_string_view< Char >  rhs 
) -> bool
friend

Definition at line 495 of file core.h.

Member Data Documentation

template<typename Char>
const size_type basic_string_view< Char >::npos = ~size_type(0)
static

Definition at line 95 of file string_view.h.


The documentation for this class was generated from the following files: