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

#include <ranges.h>

Static Public Attributes

static constexpr const bool value
 

Static Private Member Functions

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

Detailed Description

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

Definition at line 45 of file ranges.h.

Member Function Documentation

◆ check() [1/2]

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

◆ check() [2/2]

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

Member Data Documentation

◆ value

template<typename T >
constexpr const bool detail::is_std_string_like< T >::value
staticconstexpr
Initial value:
=
is_string<T>::value ||
std::is_convertible<T, std_string_view<char>>::value ||
!std::is_void<decltype(check<T>(nullptr))>::value

Definition at line 52 of file ranges.h.


The documentation for this class was generated from the following file:
detail::is_std_string_like::value
static constexpr const bool value
Definition: ranges.h:52


plotjuggler
Author(s): Davide Faconti
autogenerated on Mon Nov 11 2024 03:23:51