std::chrono::treat_as_floating_point(3cxx)

std::chrono::treat_as_floating_point3cxx

Usage

#include <chrono>

Inherits std::is_floating_point< _Rep >.

Detailed Description

template<typename _Rep>

struct std::chrono::treat_as_floating_point< _Rep >"Trait indicating whether to treat a type as a floating-point type.

The chrono library uses this trait to tell whether a duration can represent fractional values of the given precision, or only integral values.

You should specialize this trait for your own numeric types that are used with duration and can represent non-integral values.

Since

C++11

Releases

6 releases since Debian 7 (Wheezy); the text changed 5 times.

  1. 7
  2. 9
  3. 10
  4. 11
  5. 12
  6. 13

Author

Generated automatically by Doxygen for libstdc++ from the source code.

From libstdc++-12-doc 12.4.0-5 in Debian 13 (Trixie). Also shipped by libstdc++-13-doc, libstdc++-14-doc. Parsed by carta from the page's man source.