1 //===----------------------------------------------------------------------===//
2 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
3 // See https://llvm.org/LICENSE.txt for license information.
4 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //===----------------------------------------------------------------------===//
11 #include "test_macros.h"
13 /// Returns whether the basic_format_arg contains a type T with the expected value.
14 template <class Context
, class T
>
15 bool test_basic_format_arg(std::basic_format_arg
<Context
> arg
, T expected
) {
16 return std::visit_format_arg(
18 if constexpr (std::same_as
<decltype(a
), T
>)