NumCpp  2.11.0
A Templatized Header Only C++ Implementation of the Python NumPy Library
nc::logger::detail::type_traits Namespace Reference

Data Structures

class  has_serialize
 type trait to check if a type has a serialize method with the correct signature More...
 
class  has_serialize< DataType, std::void_t< std::enable_if_t< std::is_same_v< serialize_t< DataType >, std::string >, int > > >
 type trait to check if a type has a serialize method with the correct signature More...
 

Typedefs

template<typename DataType >
using serialize_t = decltype(std::declval< DataType >().serialize())
 type trait to check if a type has a serialize method with the correct signature More...
 

Variables

template<typename DataType >
constexpr bool has_serialize_v = has_serialize<DataType>::value
 type trait to check if a type has a serialize method with the correct signature More...
 

Typedef Documentation

◆ serialize_t

template<typename DataType >
using nc::logger::detail::type_traits::serialize_t = typedef decltype(std::declval<DataType>().serialize())

type trait to check if a type has a serialize method with the correct signature

Variable Documentation

◆ has_serialize_v

template<typename DataType >
constexpr bool nc::logger::detail::type_traits::has_serialize_v = has_serialize<DataType>::value
inlineconstexpr

type trait to check if a type has a serialize method with the correct signature