mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 08:57:34 +00:00
AK: Add Signed/Unsigned concepts.
This commit is contained in:
parent
4f1c72c174
commit
7d591432c4
1 changed files with 8 additions and 0 deletions
|
@ -41,6 +41,12 @@ concept FloatingPoint = IsFloatingPoint<T>::value;
|
||||||
template<typename T>
|
template<typename T>
|
||||||
concept Arithmetic = IsArithmetic<T>::value;
|
concept Arithmetic = IsArithmetic<T>::value;
|
||||||
|
|
||||||
|
template<typename T>
|
||||||
|
concept Signed = IsSigned<T>::value;
|
||||||
|
|
||||||
|
template<typename T>
|
||||||
|
concept Unsigned = IsUnsigned<T>::value;
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -50,5 +56,7 @@ concept Arithmetic = IsArithmetic<T>::value;
|
||||||
using AK::Concepts::Arithmetic;
|
using AK::Concepts::Arithmetic;
|
||||||
using AK::Concepts::FloatingPoint;
|
using AK::Concepts::FloatingPoint;
|
||||||
using AK::Concepts::Integral;
|
using AK::Concepts::Integral;
|
||||||
|
using AK::Concepts::Signed;
|
||||||
|
using AK::Concepts::Unsigned;
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue