From 92e824afa184527c3d95d68235cca3e4d00a7670 Mon Sep 17 00:00:00 2001 From: Hendiadyoin1 Date: Sun, 7 Nov 2021 14:40:10 +0100 Subject: [PATCH] AK: Add a Concept for any String type --- AK/Concepts.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/AK/Concepts.h b/AK/Concepts.h index 697a8f1ec0..2996e43633 100644 --- a/AK/Concepts.h +++ b/AK/Concepts.h @@ -6,6 +6,7 @@ #pragma once +#include #include #include @@ -32,6 +33,9 @@ concept Enum = IsEnum; template concept SameAs = IsSame; +template +concept AnyString = Detail::IsConstructible; + // FIXME: remove once Clang formats these properly. // clang-format off template