Template Function husarion_ugv_utils::common_utilities::PrefixMapKeys
Defined in File common_utilities.hpp
Function Documentation
-
template<typename T>
std::map<std::string, T> husarion_ugv_utils::common_utilities::PrefixMapKeys(const std::map<std::string, T> &map, const std::string &prefix) Prefixes the keys of a given map with a specified prefix.
- Template Parameters:
T – The value type of the map.
- Parameters:
map – The input map. Key of the map must be std::string type.
prefix – The prefix to be added to each key.
- Returns:
A new map with the keys prefixed.