Eric Fiselier | dba23b4 | 2016-05-07 03:09:55 +0000 | [diff] [blame] | 1 | // -*- C++ -*- |
| 2 | //===--------------------------- list ------------------------------------===// |
| 3 | // |
| 4 | // The LLVM Compiler Infrastructure |
| 5 | // |
| 6 | // This file is dual licensed under the MIT and the University of Illinois Open |
| 7 | // Source Licenses. See LICENSE.TXT for details. |
| 8 | // |
| 9 | //===----------------------------------------------------------------------===// |
| 10 | |
| 11 | #ifndef _LIBCPP_EXPERIMENTAL_SET |
| 12 | #define _LIBCPP_EXPERIMENTAL_SET |
| 13 | /* |
| 14 | experimental/set synopsis |
| 15 | |
| 16 | // C++1z |
| 17 | namespace std { |
| 18 | namespace experimental { |
| 19 | inline namespace fundamentals_v1 { |
| 20 | namespace pmr { |
| 21 | |
| 22 | template <class Key, class T, class Compare = less<Key>> |
| 23 | using set = std::set<Key, T, Compare, |
| 24 | polymorphic_allocator<pair<const Key,T>>>; |
| 25 | |
| 26 | template <class Key, class T, class Compare = less<Key>> |
| 27 | using multiset = std::multiset<Key, T, Compare, |
| 28 | polymorphic_allocator<pair<const Key,T>>>; |
| 29 | |
| 30 | } // namespace pmr |
| 31 | } // namespace fundamentals_v1 |
| 32 | } // namespace experimental |
| 33 | } // namespace std |
| 34 | |
| 35 | */ |
| 36 | |
| 37 | #include <experimental/__config> |
| 38 | #include <set> |
| 39 | #include <experimental/memory_resource> |
| 40 | |
| 41 | #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) |
| 42 | #pragma GCC system_header |
| 43 | #endif |
| 44 | |
| 45 | _LIBCPP_BEGIN_NAMESPACE_LFTS_PMR |
| 46 | |
| 47 | template <class _Value, class _Compare = less<_Value>> |
| 48 | using set = _VSTD::set<_Value, _Compare, |
| 49 | polymorphic_allocator<_Value>>; |
| 50 | |
| 51 | template <class _Value, class _Compare = less<_Value>> |
| 52 | using multiset = _VSTD::multiset<_Value, _Compare, |
| 53 | polymorphic_allocator<_Value>>; |
| 54 | |
| 55 | _LIBCPP_END_NAMESPACE_LFTS_PMR |
| 56 | |
| 57 | #endif /* _LIBCPP_EXPERIMENTAL_SET */ |