astrotypes  0.0
pss::astrotypes::has_dimension< T, Dimension > Struct Template Reference

return true if the Dimension is represented in the structure More...

#include <src/cpp/pss/astrotypes/multiarray/TypeTraits.h>

Inheritance diagram for pss::astrotypes::has_dimension< T, Dimension >:
Inheritance graph

Detailed Description

template<typename T, typename Dimension>
struct pss::astrotypes::has_dimension< T, Dimension >

return true if the Dimension is represented in the structure

Template Parameters
T
Dimension: the dimension to find
Parameters
T: the structure to search for the Dimension
template<typename T>
void do_something(std::enable_if<has_dimension<units::Time>::value, T>::type const&);

provide a specialisation of this class to inherit from std::true_type if it has the specified dimension

Definition at line 71 of file TypeTraits.h.