mxlib
c++ tools for analyzing astronomical data and other tasks by Jared R. Males. [git repo]
mx::meta::is_std_vector< T, if_value_type > Struct Template Reference

template<typename T, bool if_value_type = has_value_type<T>::value>
struct mx::meta::is_std_vector< T, if_value_type >

Check whether a type is std::vector or not.

First resolves whether the type as a typedef value_type. If not, then member value will be false. If it does have a member type value_type, then it uses std::is_same to compare the type to std::vector. Then value is equal to std::is_same<T, std::vector<typenameT::value_type>>::value.

Template Parameters
Tis the type to evaulate for vector-ness.
has_value_typeis a boolean type based on has_value_type SFINAE test.

Definition at line 70 of file typeTraits.hpp.


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