set and map containers to types

This commit is contained in:
2018-10-29 17:05:33 +07:00
parent 6c37d10332
commit 1f82a14c22
2 changed files with 13 additions and 0 deletions

View File

@@ -20,6 +20,8 @@
#include <future>
#include <condition_variable>
#include <set>
#include <map>
#include <tuple>
#include <array>
#include <string>

View File

@@ -37,6 +37,17 @@ namespace e2d
, typename Allocator = std::allocator<Value> >
using vector = std::vector<Value, Allocator>;
template < typename Key
, typename Comp = std::less<Key>
, typename Allocator = std::allocator<Key> >
using set = std::set<Key, Comp, Allocator>;
template < typename Key
, typename Value
, typename Comp = std::less<Key>
, typename Allocator = std::allocator<std::pair<const Key, Value>> >
using map = std::map<Key, Value, Comp, Allocator>;
template < typename Value
, typename Hash = std::hash<Value>
, typename Pred = std::equal_to<Value>