Samchon Framework for CPP  1.0.0
CriticalTreeSet.hpp
1 #pragma once
2 
3 #include <set>
4 #include <samchon/library/CriticalAllocator.hpp>
5 
6 namespace samchon
7 {
8  namespace library
9  {
11  // * @brief A Set ensures concurrency.
12  // *
13  // * @see library::CriticalAllocator
14  // * @see samchon::library
15  // * @author Jeongho Nam <http://samchon.org>
16  // */
17  template <typename T, typename _Pr = std::less<T>>
18  using CriticalSet = std::set<T, _Pr, CriticalAllocator<T>>;
19  };
20 };