MCPcopy Create free account
hub / github.com/boostorg/leaf / main

Function main

test/function_traits_test.cpp:34–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32}
33
34int main()
35{
36 check_traits(&f1);
37 check_traits(std::function<double(int const volatile, float const, int const &, float &&)>(f1));
38 check_traits( []( int const volatile, float const, int const &, float && ) -> double
39 {
40 return 42;
41 } );
42 check_traits( []( int const volatile, float const, int const &, float && ) noexcept -> double
43 {
44 return 42;
45 } );
46 static_assert(leaf::detail::function_traits<int>::arity == -1, "int arity");
47 return 0;
48}

Callers

nothing calls this directly

Calls 1

check_traitsFunction · 0.85

Tested by

no test coverage detected