2015-12-08 04:51:55 +08:00
|
|
|
#pragma once
|
2015-06-23 03:30:48 +08:00
|
|
|
|
|
|
|
#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;
|
|
|
|
};
|