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_conversion_factor< Cf1, Cf2 > Struct Template Reference

BinaryTypeTrait for querying whether Cf1 and Cf2 are conversion factors to the same dimension. More...

#include <core.h>

Inheritance diagram for units::traits::is_same_dimension_conversion_factor< Cf1, Cf2 >:
[legend]
Collaboration diagram for units::traits::is_same_dimension_conversion_factor< Cf1, Cf2 >:
[legend]

Detailed Description

template<ConversionFactorType Cf1, ConversionFactorType Cf2>
struct units::traits::is_same_dimension_conversion_factor< Cf1, Cf2 >

BinaryTypeTrait for querying whether Cf1 and Cf2 are conversion factors to the same dimension.

The base characteristic is a specialization of the template std::bool_constant. Use is_same_dimension_conversion_factor_v<Cf1, Cf2> to test whether Cf1 and Cf2 are conversion factors to the same dimension.

Template Parameters
Cf1Conversion factor to query.
Cf2Conversion factor to query.
See also
is_same_dimension_unit

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