Lines Matching refs:SwapAllocator
100 template <typename T> class SwapAllocator; variable
103 class SwapAllocator<void> {
111 typedef SwapAllocator<U> other;
114 explicit SwapAllocator(SwapSpace* swap_space) : swap_space_(swap_space) {} in SwapAllocator() function
117 SwapAllocator(const SwapAllocator<U>& other) : swap_space_(other.swap_space_) {} in SwapAllocator() function
119 SwapAllocator(const SwapAllocator& other) = default;
120 SwapAllocator& operator=(const SwapAllocator& other) = default;
121 ~SwapAllocator() = default;
127 friend class SwapAllocator; variable
130 friend bool operator==(const SwapAllocator<U>& lhs, const SwapAllocator<U>& rhs);
134 class SwapAllocator {
146 typedef SwapAllocator<U> other;
149 explicit SwapAllocator(SwapSpace* swap_space) : swap_space_(swap_space) {} in SwapAllocator() function
152 SwapAllocator(const SwapAllocator<U>& other) : swap_space_(other.swap_space_) {} in SwapAllocator() function
154 SwapAllocator(const SwapAllocator& other) = default;
155 SwapAllocator& operator=(const SwapAllocator& other) = default;
156 ~SwapAllocator() = default;
165 pointer allocate(size_type n, SwapAllocator<void>::pointer hint ATTRIBUTE_UNUSED = nullptr) {
194 inline bool operator==(SwapAllocator const& other) {
197 inline bool operator!=(SwapAllocator const& other) {
205 friend class SwapAllocator; variable
208 friend bool operator==(const SwapAllocator<U>& lhs, const SwapAllocator<U>& rhs);
212 inline bool operator==(const SwapAllocator<T>& lhs, const SwapAllocator<T>& rhs) {
217 inline bool operator!=(const SwapAllocator<T>& lhs, const SwapAllocator<T>& rhs) {
222 using SwapVector = std::vector<T, SwapAllocator<T>>;
224 using SwapSet = std::set<T, Comparator, SwapAllocator<T>>;