class template
<chrono>

std::chrono::treat_as_floating_point

template <class Rep> struct treat_as_floating_point : is_floating_point<Rep> {};
Treat as floating point
This is a traits class to identify which types of count representations (as those used internally by duration) act as floating-point types, and thus allow for fractional counts.

The standard only provides the default definition, which is the same as the is_floating_point trait for the type, but a specific type of count representation can specialize this template to be either a true_type or a false_type.

Template parameters

Rep
Count representation type.
This is an arithmetic type, or a class emulating an arithmetic type.

Member types

Inherited from integral_constant (through is_floating_point):
member typedefinition
value_typebool
typeeither true_type or false_type

Member constants

Inherited from integral_constant (through is_floating_point):
member constantdefinition
valueeither true or false

Member functions

Inherited from integral_constant (through is_floating_point):