 |
Boost.Hana
1.0.1
Your standard library for metaprogramming
|
Базовый класс<hana::type>; используется для сопоставления шаблонов.
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; }); }
Наследуется бустером::hana::type_impl< T>::_.
Статья Boost.Hana: boost::hana::basic_type< T > Struct Template Reference раздела может быть полезна для разработчиков на c++ и boost.
:: Главная :: ::
|
|