File indexing completed on 2025-07-01 08:56:22
0001 #ifndef VALUE_ITERATOR_H_62B23520_7C8E_11DE_8A39_0800200C9A66
0002 #define VALUE_ITERATOR_H_62B23520_7C8E_11DE_8A39_0800200C9A66
0003
0004 #if defined(_MSC_VER) || \
0005 (defined(__GNUC__) && (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) || \
0006 (__GNUC__ >= 4))
0007 #pragma once
0008 #endif
0009
0010 #include "yaml-cpp/dll.h"
0011 #include "yaml-cpp/node/node.h"
0012 #include "yaml-cpp/node/detail/iterator_fwd.h"
0013 #include "yaml-cpp/node/detail/iterator.h"
0014 #include <list>
0015 #include <utility>
0016 #include <vector>
0017
0018
0019 static_assert(std::is_constructible<YAML::Node, const YAML::Node&>::value, "Node must be copy constructable");
0020
0021 namespace YAML {
0022 namespace detail {
0023 struct iterator_value : public Node, std::pair<Node, Node> {
0024 iterator_value() = default;
0025 explicit iterator_value(const Node& rhs)
0026 : Node(rhs),
0027 std::pair<Node, Node>(Node(Node::ZombieNode), Node(Node::ZombieNode)) {}
0028 explicit iterator_value(const Node& key, const Node& value)
0029 : Node(Node::ZombieNode), std::pair<Node, Node>(key, value) {}
0030 };
0031 }
0032 }
0033
0034 #endif