KaliVeda
Toolkit for HIC analysis
KVUnorderedMap.h
1 #pragma once
2 
3 #include "TObject.h"
4 #include <unordered_map>
5 
15 template<typename KeyType, typename MappedType>
16 class KVUnorderedMap : public TObject {
17  std::unordered_map<KeyType, MappedType> _map;
18 
19 public:
20  MappedType& operator[](KeyType _key)
21  {
22  return _map[_key];
23  }
24 
25  auto begin()
26  {
27  return _map.begin();
28  }
29  auto begin() const
30  {
31  return _map.begin();
32  }
33  auto end()
34  {
35  return _map.end();
36  }
37  auto end() const
38  {
39  return _map.end();
40  }
41 
43 };
#define ClassDef(name, id)
Wrapper for std::unordered_map, can be written in ROOT files.
MappedType & operator[](KeyType _key)
std::unordered_map< KeyType, MappedType > _map
auto end() const
auto begin() const