diff options
author | hop311 <hop3114@gmail.com> | 2024-11-01 15:44:27 +0100 |
---|---|---|
committer | hop311 <hop3114@gmail.com> | 2024-11-01 15:44:27 +0100 |
commit | b921c9e278872b21ef3bf8a18f09061ee9bcbfb6 (patch) | |
tree | 9c7745a28a9c3cd96d25689cef4ccd8cfe630604 /src | |
parent | b602c10cf890c5973c1efbe8d958bf9b67499efe (diff) |
Add IndexedMap::mapping_type alias for easier interchangeability with ordered_maps
Diffstat (limited to 'src')
-rw-r--r-- | src/openvic-simulation/types/IndexedMap.hpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/openvic-simulation/types/IndexedMap.hpp b/src/openvic-simulation/types/IndexedMap.hpp index 73ff313..4f6fc9c 100644 --- a/src/openvic-simulation/types/IndexedMap.hpp +++ b/src/openvic-simulation/types/IndexedMap.hpp @@ -19,6 +19,7 @@ namespace OpenVic { using keys_t = std::vector<key_t>; using key_type = key_t; // To match tsl::ordered_map's key_type + using mapped_type = value_t; // To match tsl::ordered_map's mapped_type using container_t::operator[]; using container_t::size; |