mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-04 22:11:26 +12:00
Overloaded the iterator's -> operator.
This commit is contained in:
parent
d56b54b34f
commit
901d16a96f
4 changed files with 18 additions and 17 deletions
|
@ -37,6 +37,14 @@ namespace YAML
|
|||
throw BadDereference();
|
||||
}
|
||||
|
||||
const Node *Node::Iterator::operator -> ()
|
||||
{
|
||||
if(type == IT_SEQ)
|
||||
return &**seqIter;
|
||||
|
||||
throw BadDereference();
|
||||
}
|
||||
|
||||
const Node& Node::Iterator::first()
|
||||
{
|
||||
if(type == IT_MAP)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue