mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-23 19:00:59 +00:00
AK: Add Signed/Unsigned concepts.
This commit is contained in:
parent
4f1c72c174
commit
7d591432c4
Notes:
sideshowbarker
2024-07-18 21:00:21 +09:00
Author: https://github.com/mhermier
Commit: 7d591432c4
Pull-request: https://github.com/SerenityOS/serenity/pull/5994
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