mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-21 06:45:39 -06:00
C++11 range loop support for XmlNode, ValueArray, Value #1264
git-svn-id: svn://ultimatepp.org/upp/trunk@8920 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
555942682d
commit
02d258a434
6 changed files with 67 additions and 5 deletions
|
|
@ -230,8 +230,20 @@ public:
|
|||
rval_default(XmlNode);
|
||||
|
||||
XmlNode(const XmlNode& n, int);
|
||||
|
||||
XmlNode() { type = XML_DOC; }
|
||||
|
||||
XmlNode() { type = XML_DOC; }
|
||||
typedef Array<XmlNode>::ConstIterator ConstIterator;
|
||||
ConstIterator Begin() const { return node.Begin(); }
|
||||
ConstIterator End() const { return node.End(); }
|
||||
|
||||
typedef XmlNode value_type;
|
||||
typedef ConstIterator const_iterator;
|
||||
typedef const XmlNode& const_reference;
|
||||
typedef int size_type;
|
||||
typedef int difference_type;
|
||||
const_iterator begin() const { return Begin(); }
|
||||
const_iterator end() const { return End(); }
|
||||
};
|
||||
|
||||
enum {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue