openPMD-api
Static Public Member Functions | List of all members
openPMD::detail::CallUndefinedDatatype< n, ReturnType, Action, Args > Struct Template Reference

Purpose of this struct is to detect at compile time whether Action::template operator()<0>() exists. More...

#include <DatatypeHelpers.hpp>

Static Public Member Functions

static ReturnType call (Args &&...args)
 

Detailed Description

template<int n, typename ReturnType, typename Action, typename... Args>
struct openPMD::detail::CallUndefinedDatatype< n, ReturnType, Action, Args >

Purpose of this struct is to detect at compile time whether Action::template operator()<0>() exists.

If yes, call Action::template operator()<n>() with the passed arguments. If not, throw an error.

Template Parameters
nAs in switchType().
ReturnTypeAs in switchType().
ActionAs in switchType().
ArgsAs in switchType().

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