vector 1.1 KB

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