From 09d8e84c7cbbf21195f3fd2eabbcff44042d5a4e Mon Sep 17 00:00:00 2001 From: Mark Haines Date: Thu, 26 Feb 2015 16:30:19 +0000 Subject: Implement the axlotl ratchet --- include/axolotl/list.hh | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include/axolotl/list.hh') diff --git a/include/axolotl/list.hh b/include/axolotl/list.hh index a3c3d01..4c87630 100644 --- a/include/axolotl/list.hh +++ b/include/axolotl/list.hh @@ -60,6 +60,11 @@ public: return pos; } + /** + * Make space for an item in the list at the start of the list + */ + T * insert() { return insert(begin()); } + /** * Insert an item into the list at a given position. * If inserting the item makes the list longer than max_size then -- cgit v1.2.3