#include "pxr/pxr.h"
#include "pxr/base/vt/api.h"
#include "pxr/base/tf/hash.h"
#include <hboost/functional/hash.hpp>
#include <typeinfo>
#include <utility>
Go to the source code of this file.
template<class T >
size_t VtHashValue |
( |
T const & |
val | ) |
|
Compute a hash code for val
by invoking (hboost::)hash_value(val) if possible, otherwise by invoking TfHash()(val), or if neither are possible issue a coding error and return 0.
Definition at line 94 of file hash.h.
template<class T >
constexpr bool VtIsHashable |
( |
| ) |
|
A constexpr function that returns true if T is hashable via VtHashValue, false otherwise. This is true if we can either invoke (hboost::)hash_value() or TfHash()() on a T instance.
Definition at line 86 of file hash.h.