Use SFINAE to define Unserializeable<T> trait which is true if type T has an Unserialize(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 >().Unserialize(std::declval< std::nullptr_t &>())) *) |
| |
| template<typename > |
| static std::false_type | test (...) |
| |
template<typename T>
struct ipc::capnp::Unserializable< T >
Use SFINAE to define Unserializeable<T> trait which is true if type T has an Unserialize(stream) method, false otherwise.
Definition at line 36 of file common-types.h.
◆ test() [1/2]
template<typename T >
template<typename C >
◆ test() [2/2]
template<typename T >
template<typename >
◆ value
The documentation for this struct was generated from the following file: