MCPcopy Create free account
hub / github.com/andreasfertig/programming-with-cpp20 / IsMatching

Function IsMatching

09.13-fixedString3/main.cpp:80–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78
79template<typename CharT, typename... Ts>
80constexpr bool IsMatching(std::span<const CharT> str)
81{
82 return [&]<size_t... I>(std::index_sequence<I...>) {
83 return ((match<Ts>(get<I>(str))) && ...);
84 }(std::make_index_sequence<sizeof...(Ts)>{});
85}
86
87template<typename... Args>
88void print(auto fmt, const Args&... ts)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected