summaryrefslogtreecommitdiffstats
path: root/core/math/concepts.hh
blob: 1b9beb9cfe60bb2fc7498819388c2598ee67c00d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#ifndef CORE_MATH_CONCEPTS_HH
#define CORE_MATH_CONCEPTS_HH 1
#pragma once

namespace math
{
template<typename T>
concept Arithmetic = std::is_arithmetic_v<T>;
template<typename T>
concept Integer = std::is_integral_v<T>;
template<typename T>
concept FloatingPoint = std::is_floating_point_v<T>;
} // namespace math

#endif // CORE_MATH_CONCEPTS_HH