aboutsummaryrefslogtreecommitdiff
path: root/include/axolotl/list.hh
diff options
context:
space:
mode:
Diffstat (limited to 'include/axolotl/list.hh')
-rw-r--r--include/axolotl/list.hh5
1 files changed, 5 insertions, 0 deletions
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
@@ -61,6 +61,11 @@ public:
}
/**
+ * 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
* the end of the list is discarded.