1 | // |
2 | // OrderedSet.h |
3 | // |
4 | // Library: Foundation |
5 | // Package: Core |
6 | // Module: OrderedSet |
7 | // |
8 | // Definition of the OrderedSet 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_OrderedSet_INCLUDED |
18 | #define Foundation_OrderedSet_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_set.h" |
30 | |
31 | |
32 | namespace Poco { |
33 | |
34 | |
35 | template<class Key, |
36 | class Hash = std::hash<Key>, |
37 | class KeyEqual = std::equal_to<Key>, |
38 | class Allocator = std::allocator<Key>, |
39 | class ValueTypeContainer = std::deque<Key, Allocator>> |
40 | using OrderedSet = tsl::ordered_set<Key, Hash, KeyEqual, Allocator, ValueTypeContainer>; |
41 | /// For documentation, see https://tessil.github.io/ordered-map/ |
42 | |
43 | } // namespace Poco |
44 | |
45 | |
46 | #endif // Foundation_OrderedSet_INCLUDED |
47 | |