---
name: "std::chrono::treat_as_floating_point"
section: "3cxx"
platform: "linux"
package: "libstdc++-12-doc"
version: "12.4.0-5"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/std::chrono::treat_as_floating_point/3cxx"
---

# std::chrono::treat\_as\_floating\_point(3cxx)

## NAME

std::chrono::treat\_as\_floating\_point\< \_Rep \>

## SYNOPSIS

`#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

## Author

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