From ceb0e28ea59db1003beb3f455255cf9394cb3027 Mon Sep 17 00:00:00 2001 From: Hendiadyoin1 Date: Mon, 8 Nov 2021 15:02:04 +0100 Subject: [PATCH] AK: Add helper to test for pointer and cv-pointer at the same time --- AK/StdLibExtraDetails.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/AK/StdLibExtraDetails.h b/AK/StdLibExtraDetails.h index 85fb4342552..0235022f04a 100644 --- a/AK/StdLibExtraDetails.h +++ b/AK/StdLibExtraDetails.h @@ -573,6 +573,8 @@ struct __decay { template using Decay = typename __decay::type; +template +inline constexpr bool IsPointerOfType = IsPointer>&& IsSame>>>; } using AK::Detail::AddConst; using AK::Detail::AddLvalueReference;