aboutsummaryrefslogtreecommitdiff
path: root/include/axolotl/list.hh
diff options
context:
space:
mode:
authorMark Haines <mjark@negativecurvature.net>2015-02-25 08:35:53 +0000
committerMark Haines <mjark@negativecurvature.net>2015-02-25 08:35:53 +0000
commit8df4d9e9b5b1e4b87dd67a4a77ac7af93de552e7 (patch)
tree880984fab6ff855814504c9ad40c36c3597f7f60 /include/axolotl/list.hh
parent38332e0a122fdb93a7b8d736dc6520545aa177c3 (diff)
Tweak AES cbc to add pcks7 padding bytes
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 b76abdd..ae41baa 100644
--- a/include/axolotl/list.hh
+++ b/include/axolotl/list.hh
@@ -16,6 +16,11 @@ public:
T const * end() const { return _end; }
/**
+ * Is the list empty?
+ */
+ bool empty() { return _end == _data; }
+
+ /**
* The number of items in the list.
*/
std::size_t size() { return _end - _data; }