mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 04:17:35 +00:00
AK: Add a Concept for any String type
This commit is contained in:
parent
6c6e917cf0
commit
92e824afa1
1 changed files with 4 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue