template<typename T>
struct boost::hana::basic_type< T >
Base class of hana::type
; used for pattern-matching.
Example
#include <boost/core/demangle.hpp>
#include <cstdlib>
#include <iostream>
#include <string>
template <typename T>
std::string const& name_of(hana::basic_type<T>) {
static std::string name = boost::core::demangle(typeid(T).name());
return name;
}
int main() {
hana::for_each(hana::tuple_t<int, char, void, std::string>, [](
auto type) {
std::cout << name_of(type) << std::endl;
});
}
Defines boost::hana::for_each.
constexpr auto for_each
Perform an action on each element of a foldable, discarding the result each time.
Definition: for_each.hpp:39
Namespace containing everything in the library.
Definition: accessors.hpp:20
Defines boost::hana::tuple.
Defines boost::hana::type and related utilities.
Inherited by boost::hana::type_impl< T >::_.