SpECTRE  2021.08.02
Parallel::is_pupable< T, U > Struct Template Reference

Check if type T has operator| defined for Charm++ serialization. More...

#include <TypeTraits.hpp>

Detailed Description

template<typename T, typename U = void>
struct Parallel::is_pupable< T, U >

Check if type T has operator| defined for Charm++ serialization.

Details

Inherits from std::true_type if the type T has operator| defined, otherwise inherits from std::false_type

Usage

For any type T,

using result = tt::is_pupable<T>;

Returns: std::bool_constant

Semantics: If the type T has operator| defined, then

typename result::type = std::true_type;

otherwise

typename result::type = std::false_type;

Example

"Failed testing type trait is_pupable");
"Failed testing type trait is_pupable");
static_assert(Parallel::is_pupable_v<PupableClass>,
"Failed testing type trait is_pupable");
"Failed testing type trait is_pupable");
typename is_pupable< T >::type is_pupable_t
Definition: TypeTraits.hpp:142
Check if type T has operator| defined for Charm++ serialization.
Definition: TypeTraits.hpp:129
See also
has_pup_member
Template Parameters
Tthe type to check