21 using iterator_category = std::forward_iterator_tag;
22 using difference_type = std::ptrdiff_t;
23 using value_type =
typename IterTraits::value_type;
24 using reference =
typename IterTraits::reference;
25 using pointer =
typename IterTraits::pointer;
28 Iterator(
const typename IterTraits::native_iter& iter,
int index,
const formats::
yaml::
Path& path);
29 Iterator(
const Iterator& other);
30 Iterator(Iterator&& other)
noexcept;
31 Iterator& operator=(
const Iterator& other);
32 Iterator& operator=(Iterator&& other)
noexcept;
35 Iterator operator++(
int);
36 Iterator& operator++();
37 reference operator*()
const;
38 pointer operator->()
const;
40 bool operator==(
const Iterator& other)
const;
41 bool operator!=(
const Iterator& other)
const;
54 void UpdateValue()
const;
56 static constexpr std::size_t kNativeIterSize = 48;
57 static constexpr std::size_t kNativeIterAlignment =
alignof(
void*);
58 utils::FastPimpl<
typename IterTraits::native_iter, kNativeIterSize, kNativeIterAlignment> iter_pimpl_;
62 mutable std::optional<value_type> current_;