piranha  0.10
Static Public Attributes | List of all members
piranha::is_hashable< T > Class Template Reference

Hashable type trait. More...

#include <piranha/type_traits.hpp>

Static Public Attributes

static const bool value = implementation_defined
 Value of the type trait.
 

Detailed Description

template<typename T>
class piranha::is_hashable< T >

Hashable type trait.

This type trait will be true if T is hashable (after the removal of cv/ref qualifiers), false otherwise.

A type T is hashable when supplied with a specialisation of std::hash which satisfies piranha::is_hash_function_object.

Note that depending on the implementation of the default std::hash class, using this type trait with a type which does not provide a specialisation for std::hash could result in a compilation error (e.g., if the unspecialised std::hash includes a false static_assert).

Definition at line 739 of file type_traits.hpp.


The documentation for this class was generated from the following file: