MCPcopy Create free account
hub / github.com/fmtlib/fmt / test_string

Class test_string

test/compile-test.cc:349–354  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

347 (FMT_MSC_VERSION >= 1928 && FMT_MSC_VERSION < 1930)) && \
348 defined(__cpp_lib_is_constant_evaluated)
349template <size_t max_string_length, typename Char = char> struct test_string {
350 template <typename T> constexpr auto operator==(const T& rhs) const -> bool {
351 return fmt::basic_string_view<Char>(rhs).compare(buffer) == 0;
352 }
353 Char buffer[max_string_length]{};
354};
355
356template <size_t max_string_length, typename Char = char, typename... Args>
357consteval auto test_format(auto format, const Args&... args) {

Callers 1

TESTFunction · 0.85

Calls

no outgoing calls

Tested by 1

TESTFunction · 0.68