1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 15:07:45 +00:00

AK: Provide a default set of Traits for const types

This commit is contained in:
Tim Schumacher 2023-11-08 21:12:54 +01:00 committed by Tim Flynn
parent a2f60911fe
commit e9dda2a5f8
5 changed files with 22 additions and 29 deletions

View file

@ -30,6 +30,11 @@ template<typename T>
struct Traits : public DefaultTraits<T> {
};
template<typename T>
struct Traits<T const> : public Traits<T> {
using PeekType = typename Traits<T>::ConstPeekType;
};
template<Integral T>
struct Traits<T> : public DefaultTraits<T> {
static constexpr bool is_trivial() { return true; }