| //===----------------------------------------------------------------------===// |
| // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. |
| // See https://llvm.org/LICENSE.txt for license information. |
| // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
| //===----------------------------------------------------------------------===// |
| /// Returns whether the basic_format_arg contains a type T with the expected value. |
| template <class Context, class T> |
| bool test_basic_format_arg(std::basic_format_arg<Context> arg, T expected) { |
| return std::visit_format_arg( |
| if constexpr (std::same_as<decltype(a), T>) |