Unit Conversion and Dimensional Analysis Library 3.6.1
A compile-time, header-only C++23 dimensional-analysis library
Loading...
Searching...
No Matches
units::traits::is_same_dimension_unit< U1, U2 > Struct Template Reference

BinaryTypeTrait for querying whether U1 and U2 are units of the same dimension. More...

#include <core.h>

Inheritance diagram for units::traits::is_same_dimension_unit< U1, U2 >:
[legend]
Collaboration diagram for units::traits::is_same_dimension_unit< U1, U2 >:
[legend]

Detailed Description

template<UnitType U1, UnitType U2>
struct units::traits::is_same_dimension_unit< U1, U2 >

BinaryTypeTrait for querying whether U1 and U2 are units of the same dimension.

The base characteristic is a specialization of the template std::bool_constant. Use is_same_dimension_unit_v<U1, U2> to test whether U1 and U2 are units of the same dimension.

Template Parameters
U1Unit to query.
U2Unit to query.
See also
is_same_dimension_conversion_factor

The documentation for this struct was generated from the following file:
  • /home/runner/work/units/units/include/units/core.h