mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 02:17:35 +00:00
AK+Everywhere: Make StdLibExtras templates less wrapper-y
This commit makes the user-facing StdLibExtras templates and utilities arguably more nice-looking by removing the need to reach into the wrapper structs generated by them to get the value/type needed. The C++ standard library had to invent `_v` and `_t` variants (likely because of backwards compat), but we don't need to cater to any codebase except our own, so might as well have good things for free. :^)
This commit is contained in:
parent
d8d16dea95
commit
a6e4482080
41 changed files with 650 additions and 662 deletions
|
@ -33,19 +33,19 @@ namespace AK::Concepts {
|
|||
#if defined(__cpp_concepts) && !defined(__COVERITY__)
|
||||
|
||||
template<typename T>
|
||||
concept Integral = IsIntegral<T>::value;
|
||||
concept Integral = IsIntegral<T>;
|
||||
|
||||
template<typename T>
|
||||
concept FloatingPoint = IsFloatingPoint<T>::value;
|
||||
concept FloatingPoint = IsFloatingPoint<T>;
|
||||
|
||||
template<typename T>
|
||||
concept Arithmetic = IsArithmetic<T>::value;
|
||||
concept Arithmetic = IsArithmetic<T>;
|
||||
|
||||
template<typename T>
|
||||
concept Signed = IsSigned<T>::value;
|
||||
concept Signed = IsSigned<T>;
|
||||
|
||||
template<typename T>
|
||||
concept Unsigned = IsUnsigned<T>::value;
|
||||
concept Unsigned = IsUnsigned<T>;
|
||||
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue