1 #ifndef VALUE_ITERATOR_H_62B23520_7C8E_11DE_8A39_0800200C9A66
2 #define VALUE_ITERATOR_H_62B23520_7C8E_11DE_8A39_0800200C9A66
3 
4 #if defined(_MSC_VER) ||                                            \
5     (defined(__GNUC__) && (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) || \
6      (__GNUC__ >= 4))  // GCC supports "pragma once" correctly since 3.4
7 #pragma once
8 #endif
9 
10 #include "yaml-cpp/dll.h"
11 #include "yaml-cpp/node/node.h"
12 #include "yaml-cpp/node/detail/iterator_fwd.h"
13 #include "yaml-cpp/node/detail/iterator.h"
14 #include <list>
15 #include <utility>
16 #include <vector>
17 
18 namespace YAML {
19 namespace detail {
20 struct iterator_value : public Node, std::pair<Node, Node> {
iterator_valueiterator_value21   iterator_value() {}
iterator_valueiterator_value22   explicit iterator_value(const Node& rhs)
23       : Node(rhs),
24         std::pair<Node, Node>(Node(Node::ZombieNode), Node(Node::ZombieNode)) {}
iterator_valueiterator_value25   explicit iterator_value(const Node& key, const Node& value)
26       : Node(Node::ZombieNode), std::pair<Node, Node>(key, value) {}
27 };
28 }
29 }
30 
31 #endif  // VALUE_ITERATOR_H_62B23520_7C8E_11DE_8A39_0800200C9A66
32