From b921c9e278872b21ef3bf8a18f09061ee9bcbfb6 Mon Sep 17 00:00:00 2001 From: hop311 Date: Fri, 1 Nov 2024 14:44:27 +0000 Subject: Add IndexedMap::mapping_type alias for easier interchangeability with ordered_maps --- src/openvic-simulation/types/IndexedMap.hpp | 1 + 1 file changed, 1 insertion(+) 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; 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; -- cgit v1.2.3-56-ga3b1