| 1 | // |
| 2 | // OrderedMap.h |
| 3 | // |
| 4 | // Library: Foundation |
| 5 | // Package: Core |
| 6 | // Module: OrderedMap |
| 7 | // |
| 8 | // Definition of the OrderedMap class template. |
| 9 | // |
| 10 | // Copyright (c) 2012, Applied Informatics Software Engineering GmbH. |
| 11 | // and Contributors. |
| 12 | // |
| 13 | // SPDX-License-Identifier: BSL-1.0 |
| 14 | // |
| 15 | |
| 16 | |
| 17 | #ifndef Foundation_OrderedMap_INCLUDED |
| 18 | #define Foundation_OrderedMap_INCLUDED |
| 19 | |
| 20 | |
| 21 | #include "Poco/Foundation.h" |
| 22 | #ifdef min |
| 23 | #undef min |
| 24 | #endif |
| 25 | #ifdef max |
| 26 | #undef max |
| 27 | #endif |
| 28 | #include "Poco/ordered_hash.h" |
| 29 | #include "Poco/ordered_map.h" |
| 30 | |
| 31 | |
| 32 | namespace Poco { |
| 33 | |
| 34 | |
| 35 | template<class Key, |
| 36 | class T, |
| 37 | class Hash = std::hash<Key>, |
| 38 | class KeyEqual = std::equal_to<Key>, |
| 39 | class Allocator = std::allocator<std::pair<Key, T>>, |
| 40 | class ValueTypeContainer = std::deque<std::pair<Key, T>, Allocator>> |
| 41 | using OrderedMap = tsl::ordered_map<Key, T, Hash, KeyEqual, Allocator, ValueTypeContainer>; |
| 42 | /// For documentation, see https://tessil.github.io/ordered-map/ |
| 43 | |
| 44 | |
| 45 | } // namespace Poco |
| 46 | |
| 47 | |
| 48 | #endif // Foundation_OrderedMap_INCLUDED |
| 49 | |