mp_units::representation_values

A type trait that defines zero, one, min, and max for a representation type

Synopsis

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

template<typename Rep>
struct representation_values
    : std::chrono::duration_values<Rep>

Description

The zero, one, min, and max member functions in mp_units::quantity forward their work to these methods. This type can be specialized if the representation Rep requires a specific implementation to return these quantity objects.

Base Classes

NameDescription
std::chrono::duration_values<Rep>

Static Member Functions

NameDescription
max
min
one Returns the multiplicative identity (one) for the representation type.
zero

Template Parameters

NameDescription
Repa representation type for which a type trait is defined