AK: Add a Concept for any String type

This commit is contained in:
Hendiadyoin1 2021-11-07 14:40:10 +01:00 committed by Ali Mohammad Pur
parent 6c6e917cf0
commit 92e824afa1

View file

@ -6,6 +6,7 @@
#pragma once
#include <AK/Forward.h>
#include <AK/IterationDecision.h>
#include <AK/StdLibExtras.h>
@ -32,6 +33,9 @@ concept Enum = IsEnum<T>;
template<typename T, typename U>
concept SameAs = IsSame<T, U>;
template<typename T>
concept AnyString = Detail::IsConstructible<StringView, T>;
// FIXME: remove once Clang formats these properly.
// clang-format off
template<typename Func, typename... Args>