mirror of
https://github.com/enduro2d/enduro2d.git
synced 2025-12-14 16:09:06 +07:00
set and map containers to types
This commit is contained in:
@@ -20,6 +20,8 @@
|
||||
#include <future>
|
||||
#include <condition_variable>
|
||||
|
||||
#include <set>
|
||||
#include <map>
|
||||
#include <tuple>
|
||||
#include <array>
|
||||
#include <string>
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user