2015-06-23 03:30:48 +08:00
|
|
|
#ifndef MEMGRAPH_DATA_STRUCTURES_SLRBTREE_HPP
|
|
|
|
#define MEMGRAPH_DATA_STRUCTURES_SLRBTREE_HPP
|
|
|
|
|
|
|
|
#include <map>
|
|
|
|
|
2015-10-08 06:58:29 +08:00
|
|
|
#include "threading/sync/spinlock.hpp"
|
2015-06-23 03:30:48 +08:00
|
|
|
|
|
|
|
template <class K, class T>
|
2015-10-08 06:58:29 +08:00
|
|
|
class SlRbTree : Lockable<SpinLock>
|
2015-06-23 03:30:48 +08:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
|
|
|
|
private:
|
|
|
|
std::map<K, T> tree;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|