IPPL (Independent Parallel Particle Layer)
IPPL
Loading...
Searching...
No Matches
ippl::detail::IsEnabled< Type,... > Struct Template Reference

#include <TypeUtils.h>

Collaboration diagram for ippl::detail::IsEnabled< Type,... >:

Public Types

typedef Type type

Static Public Attributes

static constexpr bool enable = !std::is_void_v<Type>

Detailed Description

template<typename Type, typename...>
struct ippl::detail::IsEnabled< Type,... >

Variant verification struct Enables the type if it is not void (intended for use with std::conditional_t where the user passes void if the type should not be included)

Template Parameters
Typethe type that should be added, or void
...dummy parameter to ensure compatibility with IsPresent

Definition at line 66 of file TypeUtils.h.

Member Typedef Documentation

◆ type

template<typename Type, typename...>
typedef Type ippl::detail::IsEnabled< Type,... >::type

Definition at line 68 of file TypeUtils.h.

Member Data Documentation

◆ enable

template<typename Type, typename...>
bool ippl::detail::IsEnabled< Type,... >::enable = !std::is_void_v<Type>
staticconstexpr

Definition at line 67 of file TypeUtils.h.


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