mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-26 23:10:38 +00:00
2479d52202
In many places, string, map, or Common.h were included but not needed.
27 lines
349 B
C++
27 lines
349 B
C++
#pragma once
|
|
|
|
#include <map>
|
|
|
|
template <typename T, typename U>
|
|
class InitConstMap
|
|
{
|
|
private:
|
|
std::map<T, U> m_map;
|
|
public:
|
|
InitConstMap(const T& key, const U& val)
|
|
{
|
|
m_map[key] = val;
|
|
}
|
|
|
|
InitConstMap<T, U>& operator()(const T& key, const U& val)
|
|
{
|
|
m_map[key] = val;
|
|
return *this;
|
|
}
|
|
|
|
operator std::map<T, U>()
|
|
{
|
|
return m_map;
|
|
}
|
|
};
|