summaryrefslogtreecommitdiff
path: root/AK/Format.h
diff options
context:
space:
mode:
authorAli Mohammad Pur <ali.mpfard@gmail.com>2022-12-10 19:33:37 +0330
committerAli Mohammad Pur <Ali.mpfard@gmail.com>2022-12-11 20:44:54 +0330
commit08fc42002cd97d3e2ec2d445f89e07401743a7e0 (patch)
treee7bd1633d3a455ca51a9499e4283db7f22378b21 /AK/Format.h
parentff038f306ac5d34dd3cbd058af503167af9ba5ee (diff)
downloadserenity-08fc42002cd97d3e2ec2d445f89e07401743a7e0.zip
AK: Format the contents of NNRP<T> if T is formattable
Diffstat (limited to 'AK/Format.h')
-rw-r--r--AK/Format.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/AK/Format.h b/AK/Format.h
index 48682c2dbe..c52932e974 100644
--- a/AK/Format.h
+++ b/AK/Format.h
@@ -39,6 +39,9 @@ inline constexpr bool HasFormatter = true;
template<typename T>
inline constexpr bool HasFormatter<T, typename Formatter<T>::__no_formatter_defined> = false;
+template<typename T>
+concept Formattable = HasFormatter<T>;
+
constexpr size_t max_format_arguments = 256;
struct TypeErasedParameter {