VIPRA Documentation
Loading...
Searching...
No Matches
numeric.hpp
1#pragma once
2
3#include <concepts>
4#include <type_traits>
5
6namespace VIPRA::Concepts {
12template <class type_t>
13concept Numeric =
14 std::is_arithmetic_v<std::remove_reference_t<type_t>> &&
15 ! std::is_same_v<type_t, bool> && ! std::is_same_v<type_t, char> &&
16 ! std::is_same_v<type_t, const bool> && ! std::is_same_v<type_t, const char>;
17} // namespace VIPRA::Concepts
Checks that a type is a numeric type.
Definition numeric.hpp:13