5 #ifndef __eigenpy_type_info_hpp__
6 #define __eigenpy_type_info_hpp__
10 #include <boost/type_index.hpp>
18 return boost::typeindex::type_id_runtime(
value);
25 +[](
const T&
value) -> boost::typeindex::type_index {
26 return boost::typeindex::type_id_runtime(
value);
29 "Returns information of the type of value as a "
30 "boost::typeindex::type_index (can work without RTTI).");
33 +[](
const T&
value) -> boost::typeindex::type_index {
34 return boost::typeindex::type_id_runtime(
value);
37 "Returns information of the type of value as a "
38 "boost::typeindex::type_index (can work without RTTI).");
45 +[](
const T&
value) -> std::type_index {
return typeid(
value); },
47 "Returns information of the type of value as a std::type_index.");
55 template <
class PyClass>
58 "Queries information of the type of *this as a "
59 "boost::typeindex::type_index (can work without RTTI).");
61 "Queries information of the type of *this as a "
62 "boost::typeindex::type_index (can work without RTTI).");
64 "Queries information of the type of *this as a std::type_index.");
69 return boost::typeindex::type_id_runtime(
self);
72 static std::type_index
std_type_info(
const C&
self) {
return typeid(
self); }
77 #endif // __eigenpy_type_info_hpp__