mirror of
https://github.com/SerenityOS/serenity
synced 2024-07-21 18:15:58 +00:00
AK: Add a Concept for any String type
This commit is contained in:
parent
6c6e917cf0
commit
92e824afa1
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue