BPHash
General object hashing library for C++
Static Public Attributes | List of all members
bphash::detail::detect_hash_free_function< T > Class Template Reference

Detects there is a free function that will hash an object. More...

#include <Detector.hpp>

Static Public Attributes

static const bool value = std::is_same<decltype(test<T>(0)), Yes>::value
 

Detailed Description

template<typename T>
class bphash::detail::detect_hash_free_function< T >

Detects there is a free function that will hash an object.

This check is a little lax with respect to the signature of the free function, nor does the hasher have to be non-const, for example.

The first argument to hash_object must be const, though.

Definition at line 62 of file Detector.hpp.

Member Data Documentation

template<typename T >
const bool bphash::detail::detect_hash_free_function< T >::value = std::is_same<decltype(test<T>(0)), Yes>::value
static

Definition at line 74 of file Detector.hpp.


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