diff options
Diffstat (limited to 'euler/include/std')
-rw-r--r-- | euler/include/std/list.hpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/euler/include/std/list.hpp b/euler/include/std/list.hpp index c0d6e21..030eccc 100644 --- a/euler/include/std/list.hpp +++ b/euler/include/std/list.hpp @@ -155,6 +155,11 @@ namespace std { return *this; } + T &back() { return last_node->value; } + const T &back() const { return last_node->value; } + + size_t size() const noexcept { return count; } + }; } |