Skip to content

Commit

Permalink
Added SortedMap
Browse files Browse the repository at this point in the history
  • Loading branch information
RobbeBryssinck committed Jul 25, 2021
1 parent e1749ce commit 79c8435
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Code/core/include/Stl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#include <deque>
#include <memory>
#include <string>
#include <map>

namespace TiltedPhoques
{
Expand All @@ -34,6 +35,9 @@ namespace details
template<class T, class U>
using Map = tsl::hopscotch_map<T, U, std::hash<T>, std::equal_to<T>, StlAllocator<std::pair<T, U>>>;

template<class T, class U>
using SortedMap = std::map<T, U, std::less<T>, StlAllocator<std::pair<const T, U>>>;

template<class T>
using Set = tsl::hopscotch_set<T, std::hash<T>, std::equal_to<T>, StlAllocator<T>>;

Expand Down

0 comments on commit 79c8435

Please sign in to comment.