Unit Conversion and Dimensional Analysis Library  2.3.0
A compile-time c++14 unit conversion library
units::traits::is_unit_value_t< T, Units > Struct Template Reference

Trait which tests whether a type is a unit_value_t representing the given unit type. More...

#include <units.h>

Inheritance diagram for units::traits::is_unit_value_t< T, Units >:

Detailed Description

template<typename T, typename Units = typename traits::unit_value_t_traits<T>::unit_type>
struct units::traits::is_unit_value_t< T, Units >

Trait which tests whether a type is a unit_value_t representing the given unit type.

e.g. is_unit_value_t<meters, myType>::value would test that myType is a unit_value_t<meters>.

Template Parameters
Unitsunits that the unit_value_t is supposed to have.
Ttype to test.

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