From 55456d34ced37d87047a5787cefab8c4a78824a6 Mon Sep 17 00:00:00 2001 From: Daniel Larimer Date: Sat, 24 Nov 2012 15:49:26 -0500 Subject: [PATCH] added additional members on vector --- include/fc/vector.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/fc/vector.hpp b/include/fc/vector.hpp index 7b84a8a..1d136f6 100644 --- a/include/fc/vector.hpp +++ b/include/fc/vector.hpp @@ -90,8 +90,9 @@ namespace fc { const T* data()const { return (&_data->first); } T* data() { return (&_data->first); } - iterator begin() { return _data ? &front() : 0;} + iterator begin() { return _data ? &front() : 0;} const_iterator begin()const { return _data ? &front() : 0;} + iterator end() { return _data ? (&back())+1: 0;} const_iterator end()const { return _data ? (&back())+1: 0;} T& operator[]( uint64_t i ) { return (&_data->first)[i]; }