boost::hash<std::type_index>
// In header: <boost/container_hash/hash.hpp> struct hash<> { () ; };
( val) ;
Returns:
val.hash_code()
Throws:
Doesn't throw