mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 02:27:44 +00:00
AK: Add ConstPeekType to Traits
Also, the PeekType of smart pointers is now T* instead of const T*. Note: This commit doesn't compile, it breaks HashMap::get() for some types. Fixed in the next commit.
This commit is contained in:
parent
77d462426b
commit
b816bd0806
4 changed files with 7 additions and 3 deletions
|
@ -14,6 +14,7 @@ namespace AK {
|
|||
template<typename T>
|
||||
struct GenericTraits {
|
||||
using PeekType = T;
|
||||
using ConstPeekType = T;
|
||||
static constexpr bool is_trivial() { return false; }
|
||||
static constexpr bool equals(const T& a, const T& b) { return a == b; }
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue