SDSL 3.0.2
Succinct Data Structure Library
Loading...
Searching...
No Matches
sdsl::has_load< X > Struct Template Reference

#include <io.hpp>

Public Types

typedef decltype(check< X >(nullptr)) type
 

Static Public Member Functions

template<typename T >
static constexpr auto check (T *) -> typename std::is_same< decltype(std::declval< T >().load(std::declval< std::istream & >())), void >::type
 
template<typename >
static constexpr std::false_type check (...)
 

Static Public Attributes

static constexpr bool value = type::value
 

Detailed Description

template<typename X>
struct sdsl::has_load< X >

Definition at line 75 of file io.hpp.

Member Typedef Documentation

◆ type

template<typename X >
typedef decltype(check<X>(nullptr)) sdsl::has_load< X >::type

Definition at line 88 of file io.hpp.

Member Function Documentation

◆ check() [1/2]

template<typename X >
template<typename >
static constexpr std::false_type sdsl::has_load< X >::check (   ...)
inlinestaticconstexpr

Definition at line 84 of file io.hpp.

◆ check() [2/2]

template<typename X >
template<typename T >
static constexpr auto sdsl::has_load< X >::check ( T *  ) -> typename std::is_same<decltype(std::declval<T>().load(std::declval<std::istream &>())), void>::type
inlinestaticconstexpr

Definition at line 78 of file io.hpp.

Member Data Documentation

◆ value

template<typename X >
constexpr bool sdsl::has_load< X >::value = type::value
staticconstexpr

Definition at line 89 of file io.hpp.


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