FlatImage
A configurable Linux containerization system
Loading...
Searching...
No Matches
ns_concept::Numeric Concept Reference

Concept for numeric types (integral or floating-point) More...

#include <concept.hpp>

Concept definition

template<typename T>
concept ns_concept::Numeric = std::integral<std::remove_cvref_t<T>> or std::floating_point<std::remove_cvref_t<T>>
Concept for numeric types (integral or floating-point)
Definition concept.hpp:389

Detailed Description

Concept for numeric types (integral or floating-point)

Template Parameters
TThe type to check

Matches: int, long, float, double, etc. (not char by default in some contexts)

Example:

template<Numeric T>
T square(T value) { return value * value; }

Definition at line 389 of file concept.hpp.