Lines Matching refs:SwapAllocator

111 template <typename T> class SwapAllocator;  variable
114 class SwapAllocator<void> {
122 typedef SwapAllocator<U> other;
125 explicit SwapAllocator(SwapSpace* swap_space) : swap_space_(swap_space) {} in SwapAllocator() function
128 SwapAllocator(const SwapAllocator<U>& other) in SwapAllocator() function
131 SwapAllocator(const SwapAllocator& other) = default;
132 SwapAllocator& operator=(const SwapAllocator& other) = default;
133 ~SwapAllocator() = default;
139 friend class SwapAllocator; variable
142 friend bool operator==(const SwapAllocator<U>& lhs, const SwapAllocator<U>& rhs);
146 class SwapAllocator {
158 typedef SwapAllocator<U> other;
161 explicit SwapAllocator(SwapSpace* swap_space) : swap_space_(swap_space) {} in SwapAllocator() function
164 SwapAllocator(const SwapAllocator<U>& other) in SwapAllocator() function
167 SwapAllocator(const SwapAllocator& other) = default;
168 SwapAllocator& operator=(const SwapAllocator& other) = default;
169 ~SwapAllocator() = default;
178 pointer allocate(size_type n, SwapAllocator<void>::pointer hint ATTRIBUTE_UNUSED = nullptr) {
207 inline bool operator==(SwapAllocator const& other) {
210 inline bool operator!=(SwapAllocator const& other) {
218 friend class SwapAllocator; variable
221 friend bool operator==(const SwapAllocator<U>& lhs, const SwapAllocator<U>& rhs);
225 inline bool operator==(const SwapAllocator<T>& lhs, const SwapAllocator<T>& rhs) {
230 inline bool operator!=(const SwapAllocator<T>& lhs, const SwapAllocator<T>& rhs) {
235 using SwapVector = std::vector<T, SwapAllocator<T>>;
237 using SwapSet = std::set<T, Comparator, SwapAllocator<T>>;