Scippy

SoPlex

Sequential object-oriented simPlex

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]

static auto check ( U *  p) -> decltype((void) p->find('a'), p->length(),(void) p->data(), int())
staticprivate

◆ check() [2/2]

static void check (   ...)
staticprivate

Member Data Documentation

◆ value

FMT_CONSTEXPR_DECL const bool value
static
Initial value:
=
is_string<T>::value || !std::is_void<decltype(check<T>(nullptr))>::value

Definition at line 84 of file ranges.h.