Rosetta
Static Public Attributes | Static Private Member Functions | List of all members
detail::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((void) p->find('a'), p->length(),(void) p->data(), int())
 
template<typename >
static void check (...)
 

Detailed Description

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

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

Member Function Documentation

◆ check() [1/2]

template<typename T >
template<typename >
static void detail::is_like_std_string< T >::check (   ...)
staticprivate

◆ check() [2/2]

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

Member Data Documentation

◆ value

template<typename T >
FMT_CONSTEXPR_DECL const bool detail::is_like_std_string< T >::value
static
Initial value:
=
is_string<T>::value || !std::is_void<decltype(check<T>(nullptr))>::value
member1 value
Definition: Tag.cc:535
static FMT_CONSTEXPR_DECL const bool value
Definition: ranges.h:86

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