mirror of
https://github.com/enduro2d/enduro2d.git
synced 2025-12-15 00:11:55 +07:00
set and map containers to types
This commit is contained in:
@@ -20,6 +20,8 @@
|
|||||||
#include <future>
|
#include <future>
|
||||||
#include <condition_variable>
|
#include <condition_variable>
|
||||||
|
|
||||||
|
#include <set>
|
||||||
|
#include <map>
|
||||||
#include <tuple>
|
#include <tuple>
|
||||||
#include <array>
|
#include <array>
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|||||||
@@ -37,6 +37,17 @@ namespace e2d
|
|||||||
, typename Allocator = std::allocator<Value> >
|
, typename Allocator = std::allocator<Value> >
|
||||||
using vector = std::vector<Value, Allocator>;
|
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
|
template < typename Value
|
||||||
, typename Hash = std::hash<Value>
|
, typename Hash = std::hash<Value>
|
||||||
, typename Pred = std::equal_to<Value>
|
, typename Pred = std::equal_to<Value>
|
||||||
|
|||||||
Reference in New Issue
Block a user