Specifies if a value of a type should be treated as a floating‐point value

Synopsis

Declared in <mp‐units/framework/customization_points.h>

template<typename Rep>
constexpr bool treat_as_floating_point = std::chrono::treat_as_floating_point_v<value_type_t<Rep>>;

Description

This type trait should be specialized for a custom representation type to specify that values of this type should be treated by the library as a floating‐point ones which will enable implicit conversions between quantities.

Template Parameters

Name

Description

Rep

a representation type for which a type trait is defined

Created with MrDocs