Make json::object iterator public
This commit is contained in:
parent
4ca3438fa1
commit
75eae5b4fa
3
json.hpp
3
json.hpp
@ -88,13 +88,14 @@ namespace json {
|
|||||||
class object : public node {
|
class object : public node {
|
||||||
protected:
|
protected:
|
||||||
typedef std::map<std::string, std::unique_ptr<node>> value_store;
|
typedef std::map<std::string, std::unique_ptr<node>> value_store;
|
||||||
|
public:
|
||||||
typedef value_store::iterator iterator;
|
typedef value_store::iterator iterator;
|
||||||
typedef value_store::const_iterator const_iterator;
|
typedef value_store::const_iterator const_iterator;
|
||||||
|
|
||||||
|
protected:
|
||||||
value_store m_values;
|
value_store m_values;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
object () { ; }
|
|
||||||
virtual ~object ();
|
virtual ~object ();
|
||||||
|
|
||||||
virtual const object& as_object (void) const { return *this; }
|
virtual const object& as_object (void) const { return *this; }
|
||||||
|
Loading…
Reference in New Issue
Block a user