diff options
Diffstat (limited to 'include/o3tl/concepts.hxx')
-rw-r--r-- | include/o3tl/concepts.hxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/o3tl/concepts.hxx b/include/o3tl/concepts.hxx index 261d063ebca2..f47aef5f256d 100644 --- a/include/o3tl/concepts.hxx +++ b/include/o3tl/concepts.hxx @@ -23,6 +23,7 @@ namespace o3tl using std::integral; using std::signed_integral; using std::unsigned_integral; +using std::floating_point; } #else @@ -38,6 +39,8 @@ template <typename T> concept integral = std::is_integral_v<T>; template <typename T> concept signed_integral = integral<T>&& std::is_signed_v<T>; template <typename T> concept unsigned_integral = integral<T> && !signed_integral<T>; + +template <typename T> concept floating_point = std::is_floating_point_v<T>; } #endif |