forward_list 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. // -*- C++ -*-
  2. //===--------------------------- forward_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. #ifndef _LIBCPP_EXPERIMENTAL_FORWARD_LIST
  11. #define _LIBCPP_EXPERIMENTAL_FORWARD_LIST
  12. /*
  13. experimental/forward_list synopsis
  14. // C++1z
  15. namespace std {
  16. namespace experimental {
  17. inline namespace fundamentals_v1 {
  18. namespace pmr {
  19. template <class T>
  20. using forward_list = std::forward_list<T,polymorphic_allocator<T>>;
  21. } // namespace pmr
  22. } // namespace fundamentals_v1
  23. } // namespace experimental
  24. } // namespace std
  25. */
  26. #include <experimental/__config>
  27. #include <forward_list>
  28. #include <experimental/memory_resource>
  29. #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
  30. #pragma GCC system_header
  31. #endif
  32. _LIBCPP_BEGIN_NAMESPACE_LFTS_PMR
  33. template <class _ValueT>
  34. using forward_list = _VSTD::forward_list<_ValueT, polymorphic_allocator<_ValueT>>;
  35. _LIBCPP_END_NAMESPACE_LFTS_PMR
  36. #endif /* _LIBCPP_EXPERIMENTAL_FORWARD_LIST */