Home
last modified time | relevance | path

Searched refs:polymorphic_allocator (Results 1 – 25 of 71) sorted by relevance

123

/llvm-project/libcxx/include/__memory_resource/
H A Dpolymorphic_allocator.h44 class _LIBCPP_AVAILABILITY_PMR _LIBCPP_TEMPLATE_VIS polymorphic_allocator {
51 _LIBCPP_HIDE_FROM_ABI polymorphic_allocator() noexcept : __res_(std::pmr::get_default_resource()) {} in polymorphic_allocator() function
53 _LIBCPP_HIDE_FROM_ABI polymorphic_allocator(memory_resource* __r) noexcept : __res_(__r) {}
55 _LIBCPP_HIDE_FROM_ABI polymorphic_allocator(const polymorphic_allocator&) = default;
58 _LIBCPP_HIDE_FROM_ABI polymorphic_allocator(const polymorphic_allocator<_Tp>& __other) noexcept
61 polymorphic_allocator& operator=(const polymorphic_allocator&) = delete;
123 typename __uses_alloc_ctor<_Tp, polymorphic_allocator in construct()
49 _LIBCPP_HIDE_FROM_ABI polymorphic_allocator() noexcept : __res_(std::pmr::get_default_resource()) {} polymorphic_allocator() function
56 _LIBCPP_HIDE_FROM_ABI polymorphic_allocator(const polymorphic_allocator<_Tp>& __other) noexcept polymorphic_allocator() function
[all...]
/llvm-project/libcxx/test/std/utilities/utility/mem.res/mem.poly.allocator.class/mem.poly.allocator.mem/
H A Dconstruct_piecewise_pair_evil.pass.cpp33 EvilAlloc(std::pmr::polymorphic_allocator<T>& a) : inner_(a) {} in EvilAlloc()
34 EvilAlloc(std::pmr::polymorphic_allocator<T>&& a) : inner_(a) {} in EvilAlloc()
35 EvilAlloc(std::pmr::polymorphic_allocator<T> const& a) = delete;
36 EvilAlloc(std::pmr::polymorphic_allocator<T> const&& a) = delete;
42 std::pmr::polymorphic_allocator<T> inner_;
48 bool holds(int v, const std::pmr::polymorphic_allocator<char>&) const { return value_ == v; } in holds()
60 …bool holds(int v, const std::pmr::polymorphic_allocator<char>& a) const { return value_ == v && al… in holds()
73 …bool holds(int v, std::pmr::polymorphic_allocator<char> a) const { return value_ == v && alloc_.in… in holds()
87 …bool holds(int v, std::pmr::polymorphic_allocator<char> a) const { return value_ == v && alloc_.in… in holds()
97 static_assert(std::uses_allocator<WidgetV1, std::pmr::polymorphic_allocator<char>>::value, "");
[all …]
H A Dallocate.pass.cpp39 std::pmr::polymorphic_allocator<T> a(&R); in testForSizeAndAlign()
57 using Alloc = std::pmr::polymorphic_allocator<T>; in testAllocForSizeThrows()
86 std::pmr::polymorphic_allocator<int> a; in main()
H A Ddefault_type.compile.pass.cpp19 static_assert(std::is_same_v<std::pmr::polymorphic_allocator<>, std::pmr::polymorphic_allocator<std::byte>>);
H A Ddeallocate.pass.cpp36 std::pmr::polymorphic_allocator<T> a(&R); in testForSizeAndAlign()
51 std::pmr::polymorphic_allocator<int> a; in main()
H A Dconstruct_pair.pass.cpp40 typedef std::pmr::polymorphic_allocator<void> A; in main()
56 typedef std::pmr::polymorphic_allocator<void> A; in main()
H A Dconstruct_pair_const_lvalue_pair.pass.cpp41 std::pmr::polymorphic_allocator<P> A(M); in doTest()
117 using PMA = std::pmr::polymorphic_allocator<char>; in main()
/llvm-project/libcxx/include/
H A Dmemory_resource27 template <class Tp> class polymorphic_allocator;
30 bool operator==(const polymorphic_allocator<T1>& a,
31 const polymorphic_allocator<T2>& b) noexcept;
33 bool operator!=(const polymorphic_allocator<T1>& a,
34 const polymorphic_allocator<T2>& b) noexcept; // removed in C++20
60 # include <__memory_resource/polymorphic_allocator.h>
/llvm-project/libcxx/test/std/utilities/utility/mem.res/mem.res.aliases/
H A Dheader_unordered_set_synop.pass.cpp44 using StdSet = std::unordered_set<V, DH, DP, std::pmr::polymorphic_allocator<V>>; in main()
49 using StdSet = std::unordered_set<V, MH, DP, std::pmr::polymorphic_allocator<V>>; in main()
54 using StdSet = std::unordered_set<V, MH, MP, std::pmr::polymorphic_allocator<V>>; in main()
63 using StdSet = std::unordered_multiset<V, DH, DP, std::pmr::polymorphic_allocator<V>>; in main()
68 using StdSet = std::unordered_multiset<V, MH, DP, std::pmr::polymorphic_allocator<V>>; in main()
73 using StdSet = std::unordered_multiset<V, MH, MP, std::pmr::polymorphic_allocator<V>>; in main()
H A Dheader_unordered_map_synop.pass.cpp46 using StdMap = std::unordered_map<K, V, DH, DP, std::pmr::polymorphic_allocator<P>>; in main()
51 using StdMap = std::unordered_map<K, V, MH, DP, std::pmr::polymorphic_allocator<P>>; in main()
56 using StdMap = std::unordered_map<K, V, MH, MP, std::pmr::polymorphic_allocator<P>>; in main()
65 using StdMap = std::unordered_multimap<K, V, DH, DP, std::pmr::polymorphic_allocator<P>>; in main()
70 using StdMap = std::unordered_multimap<K, V, MH, DP, std::pmr::polymorphic_allocator<P>>; in main()
75 using StdMap = std::unordered_multimap<K, V, MH, MP, std::pmr::polymorphic_allocator<P>>; in main()
H A Dheader_set_synop.pass.cpp36 using StdSet = std::set<V, DC, std::pmr::polymorphic_allocator<V>>; in main()
41 using StdSet = std::set<V, OC, std::pmr::polymorphic_allocator<V>>; in main()
50 using StdSet = std::multiset<V, DC, std::pmr::polymorphic_allocator<V>>; in main()
55 using StdSet = std::multiset<V, OC, std::pmr::polymorphic_allocator<V>>; in main()
H A Dheader_map_synop.pass.cpp38 using StdMap = std::map<K, V, DC, std::pmr::polymorphic_allocator<P>>; in main()
43 using StdMap = std::map<K, V, OC, std::pmr::polymorphic_allocator<P>>; in main()
52 using StdMap = std::multimap<K, V, DC, std::pmr::polymorphic_allocator<P>>; in main()
57 using StdMap = std::multimap<K, V, OC, std::pmr::polymorphic_allocator<P>>; in main()
H A Dheader_string_synop.pass.cpp37 …using StdStr = std::basic_string<Char, std::char_traits<Char>, std::pmr::polymorphic_allocator<Cha… in test_string_typedef()
45 using StdStr = std::basic_string<Char, Traits, std::pmr::polymorphic_allocator<Char>>; in test_basic_string_alias()
/llvm-project/libcxx/test/libcxx/diagnostics/
H A Dmemory_resource.nodiscard.verify.cpp23 std::pmr::polymorphic_allocator<int> polymorphic_allocator; in test() local
24polymorphic_allocator.allocate(1); // expected-warning {{ignoring return value of function declare… in test()
/llvm-project/libcxx/test/std/utilities/utility/mem.res/mem.poly.allocator.class/mem.poly.allocator.ctor/
H A Dmemory_resource_convert.pass.cpp30 typedef std::pmr::polymorphic_allocator<void> A; in main()
35 typedef std::pmr::polymorphic_allocator<void> A; in main()
H A Ddefault.pass.cpp30 … static_assert(std::is_nothrow_default_constructible<std::pmr::polymorphic_allocator<void>>::value, in main()
38 typedef std::pmr::polymorphic_allocator<void> A; in main()
H A Dother_alloc.pass.cpp26 typedef std::pmr::polymorphic_allocator<void> A1; in main()
27 typedef std::pmr::polymorphic_allocator<char> A2; in main()
/llvm-project/clang/test/SemaCXX/
H A Dattr-unavailable.cpp176 class __attribute__((unavailable)) polymorphic_allocator {}; // expected-note 2 {{'polymorphic_allo… class
179 polymorphic_allocator<void> a; // expected-error {{'polymorphic_allocator<void>' is unavailable}} in f()
180 polymorphic_allocator<void> b; // expected-error {{'polymorphic_allocator<void>' is unavailable}} in f()
/llvm-project/libcxx/modules/std/
H A Dmemory_resource.inc16 // [mem.poly.allocator.class], class template polymorphic_allocator
17 using std::pmr::polymorphic_allocator;
/llvm-project/libcxx/test/std/input.output/string.streams/istringstream/istringstream.members/
H A Dstr.allocator_propagation.pass.cpp60 …ase = std::basic_stringbuf<CharT, std::char_traits<CharT>, std::pmr::polymorphic_allocator<CharT>>>
74 …= std::basic_istringstream<CharT, std::char_traits<CharT>, std::pmr::polymorphic_allocator<CharT>>; in test_allocation_is_pilfered()
105 …= std::basic_istringstream<CharT, std::char_traits<CharT>, std::pmr::polymorphic_allocator<CharT>>; in test_no_foreign_allocations()
/llvm-project/libcxx/test/libcxx/utilities/utility/mem.res/mem.poly.allocator.class/mem.poly.allocator.mem/
H A Dconstruct_piecewise_pair.pass.cpp59 std::pmr::polymorphic_allocator<T> A = M;
85 typedef std::pmr::polymorphic_allocator<char> allocator_type;
96 typedef std::pmr::polymorphic_allocator<char> allocator_type;
/llvm-project/libcxx/test/std/input.output/string.streams/stringstream/stringstream.members/
H A Dstr.allocator_propagation.pass.cpp60 …ase = std::basic_stringbuf<CharT, std::char_traits<CharT>, std::pmr::polymorphic_allocator<CharT>>>
74 … = std::basic_stringstream<CharT, std::char_traits<CharT>, std::pmr::polymorphic_allocator<CharT>>; in test_allocation_is_pilfered()
105 … = std::basic_stringstream<CharT, std::char_traits<CharT>, std::pmr::polymorphic_allocator<CharT>>; in test_no_foreign_allocations()
/llvm-project/libcxx/test/std/utilities/utility/mem.res/mem.poly.allocator.class/mem.poly.allocator.eq/
H A Dnot_equal.pass.cpp33 typedef std::pmr::polymorphic_allocator<void> A1; in main()
34 typedef std::pmr::polymorphic_allocator<int> A2; in main()
H A Dequal.pass.cpp32 typedef std::pmr::polymorphic_allocator<void> A1; in main()
33 typedef std::pmr::polymorphic_allocator<int> A2; in main()
/llvm-project/libcxx/test/std/input.output/string.streams/ostringstream/ostringstream.members/
H A Dstr.allocator_propagation.pass.cpp60 …= std::basic_ostringstream<CharT, std::char_traits<CharT>, std::pmr::polymorphic_allocator<CharT>>; in test_allocation_is_pilfered()
76 …= std::basic_ostringstream<CharT, std::char_traits<CharT>, std::pmr::polymorphic_allocator<CharT>>; in test_no_foreign_allocations()

123