mirror of
https://github.com/boostorg/iterator.git
synced 2025-05-10 07:33:53 +00:00
generator_iterator now uses decltype approach to deduce value and reference types instead of the legacy result_type typedef, which was required to be defined by the generator function. The default constructor of generator_iterator now value initializes its data members to avoid using uninitialized data.
15 lines
539 B
C++
15 lines
539 B
C++
// (C) Copyright Andrey Semashev 2025.
|
|
// Distributed under the Boost Software License, Version 1.0. (See
|
|
// accompanying file LICENSE_1_0.txt or copy at
|
|
// http://www.boost.org/LICENSE_1_0.txt)
|
|
|
|
#ifndef BOOST_ITERATOR_ADAPTOR_GENERATOR_ITERATOR_HPP
|
|
#define BOOST_ITERATOR_ADAPTOR_GENERATOR_ITERATOR_HPP
|
|
|
|
// This is a deprecated header left for backward compatibility.
|
|
// Please use <boost/iterator/generator_iterator.hpp> instead.
|
|
|
|
#include <boost/iterator/generator_iterator.hpp>
|
|
|
|
#endif // BOOST_ITERATOR_ADAPTOR_GENERATOR_ITERATOR_HPP
|