mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 07:37:46 +00:00
AK: Add helper to test for pointer and cv-pointer at the same time
This commit is contained in:
parent
dfe2cf3a40
commit
ceb0e28ea5
1 changed files with 2 additions and 0 deletions
|
@ -573,6 +573,8 @@ struct __decay<T[N]> {
|
||||||
template<typename T>
|
template<typename T>
|
||||||
using Decay = typename __decay<T>::type;
|
using Decay = typename __decay<T>::type;
|
||||||
|
|
||||||
|
template<typename T, typename U>
|
||||||
|
inline constexpr bool IsPointerOfType = IsPointer<Decay<U>>&& IsSame<T, RemoveCV<RemovePointer<Decay<U>>>>;
|
||||||
}
|
}
|
||||||
using AK::Detail::AddConst;
|
using AK::Detail::AddConst;
|
||||||
using AK::Detail::AddLvalueReference;
|
using AK::Detail::AddLvalueReference;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue