MCPcopy Create free account
hub / github.com/BowenFu/matchit.cpp / Is

Class Is

sample/Extractor-Pattern.cpp:7–15  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5
6template <typename T>
7struct Is
8{
9 template <typename Arg>
10 Arg &&operator()(Arg &&arg) const
11 {
12 static_assert(std::is_same_v<T, std::decay_t<Arg>>);
13 return std::forward<Arg>(arg);
14 }
15};
16
17template <typename T>
18inline constexpr Is<T> is;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected