Publically expose iterator typedef for json::array

This commit is contained in:
Danny Robson 2011-10-29 15:07:03 +11:00
parent d57269178a
commit 10b127415a

View File

@ -101,12 +101,13 @@ namespace json {
/// Represents a JSON array, and contains its children. /// Represents a JSON array, and contains its children.
class array : public node { class array : public node {
protected: public:
std::vector<node*> m_values;
typedef std::vector<node*>::iterator array_iterator; typedef std::vector<node*>::iterator array_iterator;
typedef std::vector<node*>::const_iterator const_array_iterator; typedef std::vector<node*>::const_iterator const_array_iterator;
protected:
std::vector<node*> m_values;
public: public:
virtual ~array(); virtual ~array();