ATLAS Offline Software
Classes | Static Public Member Functions | Static Public Attributes | List of all members
CP::detail::ContainerType< T > Struct Template Reference

check what kind of object/container the argument is More...

#include <CopyHelpers.h>

Collaboration diagram for CP::detail::ContainerType< T >:

Classes

class  checker
 

Static Public Member Functions

template<typename C >
static std::true_type test_iparticle (checker< C, decltype((*(const xAOD::IParticle **) nullptr)=((C *) nullptr) ->at(0))> *)
 
template<typename C >
static std::false_type test_iparticle (...)
 
template<typename C >
static std::true_type test_container (checker< C, decltype((*(const SG::AuxVectorBase **) nullptr)=((C *) nullptr))> *)
 
template<typename C >
static std::false_type test_container (...)
 

Static Public Attributes

static const int value
 Value evaluating to: More...
 

Detailed Description

template<typename T>
struct CP::detail::ContainerType< T >

check what kind of object/container the argument is

Definition at line 27 of file SystematicsHandles/SystematicsHandles/CopyHelpers.h.

Member Function Documentation

◆ test_container() [1/2]

template<typename T >
template<typename C >
static std::false_type CP::detail::ContainerType< T >::test_container (   ...)
static

◆ test_container() [2/2]

template<typename T >
template<typename C >
static std::true_type CP::detail::ContainerType< T >::test_container ( checker< C, decltype((*(const SG::AuxVectorBase **) nullptr)=((C *) nullptr))> *  )
static

◆ test_iparticle() [1/2]

template<typename T >
template<typename C >
static std::false_type CP::detail::ContainerType< T >::test_iparticle (   ...)
static

◆ test_iparticle() [2/2]

template<typename T >
template<typename C >
static std::true_type CP::detail::ContainerType< T >::test_iparticle ( checker< C, decltype((*(const xAOD::IParticle **) nullptr)=((C *) nullptr) ->at(0))> *  )
static

Member Data Documentation

◆ value

template<typename T >
const int CP::detail::ContainerType< T >::value
static
Initial value:
= ( std::is_same< std::true_type, decltype( test_iparticle< T >( nullptr ) ) >::value ?
1 : ( std::is_same< std::true_type, decltype( test_container< T >( nullptr ) ) >::value ?
2 : 3 ) )

Value evaluating to:

Definition at line 47 of file SystematicsHandles/SystematicsHandles/CopyHelpers.h.


The documentation for this struct was generated from the following file:
CP::detail::ContainerType::value
static const int value
Value evaluating to:
Definition: SystematicsHandles/SystematicsHandles/CopyHelpers.h:47