util/IntrusiveList: erase() returns an iterator
This commit is contained in:
		| @@ -319,8 +319,10 @@ public: | |||||||
| 		return {&t}; | 		return {&t}; | ||||||
| 	} | 	} | ||||||
|  |  | ||||||
| 	void erase(iterator i) noexcept { | 	iterator erase(iterator i) noexcept { | ||||||
|  | 		auto result = std::next(i); | ||||||
| 		ToHook(*i).unlink(); | 		ToHook(*i).unlink(); | ||||||
|  | 		return result; | ||||||
| 	} | 	} | ||||||
|  |  | ||||||
| 	void push_front(T &t) noexcept { | 	void push_front(T &t) noexcept { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Max Kellermann
					Max Kellermann