Lines Matching refs:SwapAllocator

110 template <typename T> class SwapAllocator;  variable
113 class SwapAllocator<void> {
121 typedef SwapAllocator<U> other;
124 explicit SwapAllocator(SwapSpace* swap_space) : swap_space_(swap_space) {} in SwapAllocator() function
127 SwapAllocator(const SwapAllocator<U>& other) // NOLINT, implicit in SwapAllocator() function
130 SwapAllocator(const SwapAllocator& other) = default;
131 SwapAllocator& operator=(const SwapAllocator& other) = default;
132 ~SwapAllocator() = default;
138 friend class SwapAllocator; variable
141 friend bool operator==(const SwapAllocator<U>& lhs, const SwapAllocator<U>& rhs);
145 class SwapAllocator {
157 typedef SwapAllocator<U> other;
160 explicit SwapAllocator(SwapSpace* swap_space) : swap_space_(swap_space) {} in SwapAllocator() function
163 SwapAllocator(const SwapAllocator<U>& other) // NOLINT, implicit in SwapAllocator() function
166 SwapAllocator(const SwapAllocator& other) = default;
167 SwapAllocator& operator=(const SwapAllocator& other) = default;
168 ~SwapAllocator() = default;
177 pointer allocate(size_type n, SwapAllocator<void>::pointer hint ATTRIBUTE_UNUSED = nullptr) {
206 inline bool operator==(SwapAllocator const& other) {
209 inline bool operator!=(SwapAllocator const& other) {
217 friend class SwapAllocator; variable
220 friend bool operator==(const SwapAllocator<U>& lhs, const SwapAllocator<U>& rhs);
224 inline bool operator==(const SwapAllocator<T>& lhs, const SwapAllocator<T>& rhs) {
229 inline bool operator!=(const SwapAllocator<T>& lhs, const SwapAllocator<T>& rhs) {
234 using SwapVector = std::vector<T, SwapAllocator<T>>;
236 using SwapSet = std::set<T, Comparator, SwapAllocator<T>>;