有没有多维地图? 我正在寻找一种在C++中拥有多维地图的方法。可能是这样的: ["Key1"] ["SubKey1"] = "Value" ["SubKey2"] = "Value" ["Key2"] ...

有没有多维地图? 我正在寻找一种在C++中拥有多维地图的方法。可能是这样的: ["Key1"] ["SubKey1"] = "Value" ["SubKey2"] = "Value" ["Key2"] ...,c++,map,C++,Map,你可以使用 std::map<std::string, std::map<std::string, std::string>> std::map<std::vector<std::string>, std::string> std::map 您可以使用 std::map<std::string, std::map<std::string, std::string>> std::map<std::vector<

你可以使用

std::map<std::string, std::map<std::string, std::string>>
std::map<std::vector<std::string>, std::string>
std::map
您可以使用

std::map<std::string, std::map<std::string, std::string>>
std::map<std::vector<std::string>, std::string>
std::map
您可以使用

std::map<std::string, std::map<std::string, std::string>>
std::map<std::vector<std::string>, std::string>
std::map
您可以使用

std::map<std::string, std::map<std::string, std::string>>
std::map<std::vector<std::string>, std::string>
std::map
您可以使用

std::map<std::string, std::map<std::string, std::string>>
std::map<std::vector<std::string>, std::string>
std::map
您可以使用

std::map<std::string, std::map<std::string, std::string>>
std::map<std::vector<std::string>, std::string>
std::map
您可以使用

std::map<std::string, std::map<std::string, std::string>>
std::map<std::vector<std::string>, std::string>
std::map
您可以使用

std::map<std::string, std::map<std::string, std::string>>
std::map<std::vector<std::string>, std::string>
std::map

或者,使用
std::pair
作为键。或者,使用
std::pair
作为键。或者,使用
std::pair
作为键。或者,使用
std::pair
作为键。您确定这会起作用吗?我不知道vector有
操作符,你确定这能用吗?我不知道vector有
操作符,你确定这能用吗?我不知道vector有
操作符,你确定这能用吗?我不知道向量有
操作符