2 //===----------------------------------------------------------------------===//
4 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
5 // See https://llvm.org/LICENSE.txt for license information.
6 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
8 //===----------------------------------------------------------------------===//
10 #ifndef _LIBCPP_EXPERIMENTAL_LIST
11 #define _LIBCPP_EXPERIMENTAL_LIST
14 experimental/list synopsis
18 namespace experimental {
19 inline namespace fundamentals_v1 {
23 using list = std::list<T,polymorphic_allocator<T>>;
26 } // namespace fundamentals_v1
27 } // namespace experimental
32 #include <__assert> // all public C++ headers provide the assertion handler
33 #include <experimental/__config>
34 #include <experimental/memory_resource>
37 #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
38 # pragma GCC system_header
41 _LIBCPP_BEGIN_NAMESPACE_LFTS_PMR
43 #ifndef _LIBCPP_CXX03_LANG
45 template <class _ValueT>
46 using list = _VSTD::list<_ValueT, polymorphic_allocator<_ValueT>>;
48 #endif // _LIBCPP_CXX03_LANG
50 _LIBCPP_END_NAMESPACE_LFTS_PMR
52 #endif /* _LIBCPP_EXPERIMENTAL_LIST */