SoPlex Documentation
Loading...
Searching...
No Matches
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 internal::is_like_std_string< T >

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

Definition at line 77 of file ranges.h.

Member Function Documentation

◆ check() [1/2]

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

◆ check() [2/2]

template<typename T >
template<typename U >
static auto 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 value
static
Initial value:
=
is_string<T>::value || !std::is_void<decltype(check<T>(nullptr))>::value
static FMT_CONSTEXPR_DECL const bool value
Definition ranges.h:84

Definition at line 84 of file ranges.h.