sandbox
Loading...
Searching...
No Matches
sbx::math::numeric Concept Reference

Concept for numeric types. More...

#include <concepts.hpp>

Concept definition

template<typename Type>
concept sbx::math::numeric = (std::is_integral_v<Type> && !std::is_same_v<Type, bool>) || std::is_floating_point_v<Type>
Concept for numeric types.
Definition: concepts.hpp:48

Detailed Description

Concept for numeric types.

A numeric type is either:

  • a non-boolean integral type, or
  • a floating-point type.
Template Parameters
TypeType to test.