MCPcopy Create free account
hub / github.com/boostorg/hana / metafunction

Function metafunction

example/tutorial/type.cpp:230–231  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

228//! [metafunction1]
229template <template <typename> class F, typename T>
230constexpr auto metafunction(hana::basic_type<T> const&)
231{ return hana::type_c<typename F<T>::type>; }
232
233auto t = hana::type_c<int>;
234BOOST_HANA_CONSTANT_CHECK(metafunction<std::add_pointer>(t) == hana::type_c<int*>);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected