Lines Matching refs:allocator
15 template<typename T> struct allocator { struct
26 std::allocator<int> alloc; in alloc_via_std_allocator()
33 template<> struct std::allocator<void()> { struct in std
36 constexpr void *fn = std::allocator<void()>().allocate(); // expected-error {{constant expression}}… argument
39 template<> struct std::allocator<Incomplete> { struct in std
42 constexpr void *incomplete = std::allocator<Incomplete>().allocate(); // expected-error {{constant … argument
46 template<> struct std::allocator<WrongSize> { struct in std
49 constexpr void *wrong_size = std::allocator<WrongSize>().allocate(); // expected-error {{constant e… argument
61 p = std::allocator<int>().allocate(1); in mismatched()
72 std::allocator<int>().deallocate(p); // expected-note 2{{in call}} in mismatched()
83 constexpr int *escape = std::allocator<int>().allocate(3); // expected-error {{constant expression}…
84 constexpr int leak = (std::allocator<int>().allocate(3), 0); // expected-error {{constant expressio…
85 constexpr int no_lifetime_start = (*std::allocator<int>().allocate(1) = 1); // expected-error {{con…
86 constexpr int no_deallocate_nullptr = (std::allocator<int>().deallocate(nullptr), 1); // expected-e…
88 constexpr int no_deallocate_nonalloc = (std::allocator<int>().deallocate((int*)&no_deallocate_nonal…
116 int *p = std::allocator<int>().allocate(3); in call_std_construct_at()
121 std::allocator<int>().deallocate(p); in call_std_construct_at()
207 std::allocator<A> alloc; in h()