/llvm-project/libcxx/include/__memory_resource/ |
H A D | polymorphic_allocator.h | 44 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 D | construct_piecewise_pair_evil.pass.cpp | 33 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 D | allocate.pass.cpp | 39 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 D | default_type.compile.pass.cpp | 19 static_assert(std::is_same_v<std::pmr::polymorphic_allocator<>, std::pmr::polymorphic_allocator<std::byte>>);
|
H A D | deallocate.pass.cpp | 36 std::pmr::polymorphic_allocator<T> a(&R); in testForSizeAndAlign() 51 std::pmr::polymorphic_allocator<int> a; in main()
|
H A D | construct_pair.pass.cpp | 40 typedef std::pmr::polymorphic_allocator<void> A; in main() 56 typedef std::pmr::polymorphic_allocator<void> A; in main()
|
H A D | construct_pair_const_lvalue_pair.pass.cpp | 41 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 D | memory_resource | 27 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 D | header_unordered_set_synop.pass.cpp | 44 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 D | header_unordered_map_synop.pass.cpp | 46 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 D | header_set_synop.pass.cpp | 36 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 D | header_map_synop.pass.cpp | 38 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 D | header_string_synop.pass.cpp | 37 …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 D | memory_resource.nodiscard.verify.cpp | 23 std::pmr::polymorphic_allocator<int> polymorphic_allocator; in test() local 24 …polymorphic_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 D | memory_resource_convert.pass.cpp | 30 typedef std::pmr::polymorphic_allocator<void> A; in main() 35 typedef std::pmr::polymorphic_allocator<void> A; in main()
|
H A D | default.pass.cpp | 30 … 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 D | other_alloc.pass.cpp | 26 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 D | attr-unavailable.cpp | 176 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 D | memory_resource.inc | 16 // [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 D | str.allocator_propagation.pass.cpp | 60 …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 D | construct_piecewise_pair.pass.cpp | 59 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 D | str.allocator_propagation.pass.cpp | 60 …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 D | not_equal.pass.cpp | 33 typedef std::pmr::polymorphic_allocator<void> A1; in main() 34 typedef std::pmr::polymorphic_allocator<int> A2; in main()
|
H A D | equal.pass.cpp | 32 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 D | str.allocator_propagation.pass.cpp | 60 …= 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()
|