2
mkvmerge -- utility for splicing together matroska files
3
from component media subtypes
5
Distributed under the GPL v2
6
see the file COPYING for details
7
or visit http://www.gnu.org/copyleft/gpl.html
9
Hash/unordered map helper functions
11
Written by Moritz Bunkus <moritz@bunkus.org>.
14
#ifndef MTX_COMMON_HASH_H
15
#define MTX_COMMON_HASH_H
21
// Support for hashing all scoped and unscoped enums via their
23
template<typename Tkey>
25
std::size_t operator()(Tkey const &key) const {
26
using T = typename std::underlying_type<Tkey>::type;
27
return std::hash<T>()(static_cast<T>(key));
33
#endif // MTX_COMMON_HASH_H