SpECTRE  v2024.09.29
Parallel::has_pup_member< T, typename > Struct Template Reference

Check if T has a pup member function. More...

#include <TypeTraits.hpp>

Detailed Description

template<typename T, typename = std::void_t<>>
struct Parallel::has_pup_member< T, typename >

Check if T has a pup member function.

Details

Inherits from std::true_type if the type T has a pup(PUP::er&) member function, otherwise inherits from std::false_type

Usage

For any type T,

using result = tt::has_pup_member<T>;

Returns: std::bool_constant

Semantics: If the type T has a pup(PUP::er&) member function, then

typename result::type = std::true_type;

otherwise

typename result::type = std::false_type;

Example

static_assert(Parallel::has_pup_member_v<PupableClass>);
typename has_pup_member< T >::type has_pup_member_t
Definition: TypeTraits.hpp:158
Check if T has a pup member function.
Definition: TypeTraits.hpp:145
See also
is_pupable
Template Parameters
Tthe type to check

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