BPHash
General object hashing library for C++
Namespaces | Functions
memory.hpp File Reference

Hashing of std::unique_ptr and std::shared_ptr. More...

#include "bphash/Hasher.hpp"
#include <memory>
Include dependency graph for memory.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 bphash
 

Functions

template<typename T , typename Deleter >
PointerWrapper< T > bphash::hash_pointer (const std::unique_ptr< T, Deleter > &ptr, size_t len=1)
 Create a wrapper around a unique_ptr. More...
 
template<typename T , typename Deleter >
PointerWrapper< T > bphash::hash_pointer (const std::unique_ptr< T[], Deleter > &ptr, size_t len)
 Create a wrapper around a unique_ptr. More...
 
template<typename T >
PointerWrapper< T > bphash::hash_pointer (const std::shared_ptr< T > &ptr, size_t len=1)
 Create a wrapper around a shared_ptr. More...
 
template<typename T , typename Deleter >
std::enable_if< is_hashable< T >::value, void >::type bphash::hash_object (const std::unique_ptr< T, Deleter > &p, Hasher &h)
 Hashing of std::unique_ptr. More...
 
template<typename T >
std::enable_if< is_hashable< T >::value, void >::type bphash::hash_object (const std::shared_ptr< T > &p, Hasher &h)
 Hashing of std::shared_ptr. More...
 

Detailed Description

Hashing of std::unique_ptr and std::shared_ptr.

Definition in file memory.hpp.