Use SFINAE to define Serializeable<T> trait which is true if type T has a Serialize(stream) method, false otherwise.
More...
#include <common-types.h>
|
static constexpr bool | value = decltype(test<T>(nullptr))::value |
|
|
template<typename C > |
static std::true_type | test (decltype(std::declval< C >().Serialize(std::declval< std::nullptr_t & >())) *) |
|
template<typename > |
static std::false_type | test (...) |
|
template<typename T>
struct ipc::capnp::Serializable< T >
Use SFINAE to define Serializeable<T> trait which is true if type T has a Serialize(stream) method, false otherwise.
Definition at line 22 of file common-types.h.
◆ test() [1/2]
template<typename T >
template<typename >
◆ test() [2/2]
template<typename T >
template<typename C >
◆ value
The documentation for this struct was generated from the following file: