SDSL 3.0.1
Succinct Data Structure Library
Loading...
Searching...
No Matches
sdsl::has_serialize< 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 >().serialize(std::declval< std::ostream & >(), std::declval< structure_tree_node * >(), std::declval< std::string >())), typename T::size_type >::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_serialize< X >

Definition at line 42 of file io.hpp.

Member Typedef Documentation

◆ type

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

Definition at line 58 of file io.hpp.

Member Function Documentation

◆ check() [1/2]

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

Definition at line 54 of file io.hpp.

◆ check() [2/2]

template<typename X >
template<typename T >
static constexpr auto sdsl::has_serialize< X >::check ( T *  ) -> typename std::is_same<decltype(std::declval<T>().serialize(std::declval<std::ostream &>(), std::declval<structure_tree_node *>(), std::declval<std::string>())), typename T::size_type>::type
inlinestaticconstexpr

Definition at line 46 of file io.hpp.

Member Data Documentation

◆ value

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

Definition at line 59 of file io.hpp.


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