OSVR-Core  0.6-1962-g59773924
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
TypeSafeIdHash.h File Reference

Header defining specializations of std::hash that forward to the contained integer type, primarily to allow TypeSafeId values to be used in as keys in unordered_map<> and friends. Also contains on-request specializations for use with aggregates of type-safe IDs. More...

#include <osvr/Util/TypeSafeId.h>
#include <osvr/Util/SizedInt.h>
#include <functional>
#include <type_traits>
#include <cassert>
#include <climits>

Go to the source code of this file.

Classes

struct  osvr::util::HashIdAggregate< IdAggregate >
 

Namespaces

 osvr
 The main namespace for all C++ elements of the framework, internal and external.
 
 osvr::util
 The Util library: Functionality not necessarily coupled to any particular core library, serving more as a common base layer behind all systems.
 

Detailed Description

Header defining specializations of std::hash that forward to the contained integer type, primarily to allow TypeSafeId values to be used in as keys in unordered_map<> and friends. Also contains on-request specializations for use with aggregates of type-safe IDs.

Date
2016
Author
Sensics, Inc. http://sensics.com/osvr

Definition in file TypeSafeIdHash.h.