geode/loader/include/Geode/c++stl/msvcstl.hpp

27 lines
645 B
C++
Raw Permalink Normal View History

2022-10-30 14:24:06 -04:00
#pragma once
2024-03-20 11:52:48 -04:00
#include "msvc/allocator.hpp"
#include "msvc/umap.hpp"
#include "msvc/uset.hpp"
#include <map>
2022-10-30 14:59:20 -04:00
#include <vector>
2023-12-20 21:14:53 -05:00
#include <set>
2022-10-30 14:24:06 -04:00
namespace gd {
template <class T>
using vector = std::vector<T>;
template <class K, class V>
using map = std::map<K, V>;
2023-12-20 21:14:53 -05:00
template <class K, class V>
2024-03-20 11:52:48 -04:00
using unordered_map = geode::stl::unordered_map<K, V, std::hash<K>, std::equal_to<K>, geode::stl::allocator<std::pair<const K, V>>>;
2023-12-20 21:14:53 -05:00
template <class K>
using set = std::set<K>;
template <class K>
2024-03-20 11:52:48 -04:00
using unordered_set = geode::stl::unordered_set<K, std::hash<K>, std::equal_to<K>, geode::stl::allocator<K>>;
}