From ebae927a3e79dbc50f9c47fa8d8268e8da6e66cc Mon Sep 17 00:00:00 2001 From: David Schwartz Date: Wed, 23 Apr 2014 11:00:10 -0700 Subject: [PATCH] Allow range-based for to work on STVector256 --- src/ripple_data/protocol/SerializedTypes.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/ripple_data/protocol/SerializedTypes.h b/src/ripple_data/protocol/SerializedTypes.h index 13964cb01..236db7379 100644 --- a/src/ripple_data/protocol/SerializedTypes.h +++ b/src/ripple_data/protocol/SerializedTypes.h @@ -1621,6 +1621,15 @@ public: Json::Value getJson (int) const; + std::vector::const_iterator begin() const + { + return mValue.begin (); + } + std::vector::const_iterator end() const + { + return mValue.end (); + } + private: std::vector mValue;