You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
408 B
22 lines
408 B
/* |
|
* Copyright (C) 2022 Riyyi |
|
* |
|
* SPDX-License-Identifier: MIT |
|
*/ |
|
|
|
#pragma once |
|
|
|
#include <type_traits> // is_integral_v, floating_point_v |
|
|
|
namespace Util::Concepts { |
|
|
|
template<class T> |
|
concept Integral = std::is_integral_v<T>; |
|
|
|
template<typename T> |
|
concept FloatingPoint = std::is_floating_point_v<T>; |
|
|
|
} // namespace Util::Concepts |
|
|
|
using Util::Concepts::FloatingPoint; |
|
using Util::Concepts::Integral;
|
|
|