units_traits_is_unit_value_t(3)
| units::traits::is_unit_value_t< T, Units >(3) | Unit Conversion and Dimensional Analysis Library | units::traits::is_unit_value_t< T, Units >(3) |
NAME
units::traits::is_unit_value_t< T, Units > - Trait which tests whether a type is a unit_value_t representing the given unit type.
SYNOPSIS
#include <units.h>
Inherits std::integral_constant< bool, std::is_base_of< units::detail::_unit_value_t< typename traits::unit_value_t_traits< T >::unit_type >, T >::value >.
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
Units units that the unit_value_t is
supposed to have.
T type to test.
T type to test.
Author
Generated automatically by Doxygen for Unit Conversion and Dimensional Analysis Library from the source code.
| Wed Feb 11 2026 09:38:34 | Version 2.3.0 |
