units_traits_is_convertible_unit_t(3)

units::traits::is_convertible_unit_t< U1, U2 >(3) Unit Conversion and Dimensional Analysis Library units::traits::is_convertible_unit_t< U1, U2 >(3)

NAME

units::traits::is_convertible_unit_t< U1, U2 > - Trait which tests whether two container types derived from unit_t are convertible to each other.

SYNOPSIS

#include <units.h>

Inherits std::integral_constant< bool, is_convertible_unit< units::traits::unit_t_traits< U1 >::unit_type, units::traits::unit_t_traits< U2 >::unit_type >::value >.

Detailed Description

template<class U1, class U2>

struct units::traits::is_convertible_unit_t< U1, U2 >"Trait which tests whether two container types derived from unit_t are convertible to each other.

Inherits from std::true_type or std::false_type. Use is_convertible_unit_t<U1, U2>::value to test whether class U1 is convertible to class U2. Note: convertible has both the semantic meaning, (i.e. meters can be converted to feet), and the c++ meaning of conversion (type meters can be converted to type feet). Conversion is always symmetric, so if U1 is convertible to U2, then U2 will be convertible to U1.

Template Parameters

U1 Unit to convert from.
U2 Unit to convert to.

See also

is_convertible_unit

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