Static Public Attributes | Static Private Member Functions | List of all members
internal::is_like_std_string< T > Class Template Reference

Return true value if T has std::string interface, like std::string_view. More...

#include <ranges.h>

Static Public Attributes

static FMT_CONSTEXPR_DECL const bool value
 

Static Private Member Functions

template<typename U >
static auto check (U *p) -> decltype(p->find('a'), p->length(), p->data(), int())
 
template<typename >
static void check (...)
 

Detailed Description

template<typename T>
class internal::is_like_std_string< T >

Return true value if T has std::string interface, like std::string_view.

Definition at line 78 of file ranges.h.

Member Function Documentation

template<typename T >
template<typename U >
static auto internal::is_like_std_string< T >::check ( U *  p) -> decltype(p->find('a'), p->length(), p->data(), int())
staticprivate
template<typename T >
template<typename >
static void internal::is_like_std_string< T >::check (   ...)
staticprivate

Member Data Documentation

template<typename T >
FMT_CONSTEXPR_DECL const bool internal::is_like_std_string< T >::value
static
Initial value:
=
!std::is_void<decltype(check<T>(FMT_NULL))>::value

Definition at line 86 of file ranges.h.


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