mirror of
https://github.com/boostorg/iterator.git
synced 2025-05-10 07:33:53 +00:00
shared_container_iterator now uses std::shared_ptr to store the reference to the container. boost::shared_ptr is still supported and is wrapped into std::shared_ptr on construction, so there is overhead due to allocation of std::shared_ptr state. Going forward, std::shared_ptr is expected to be the primary use case. As a bonus, this eliminates the dependency on Boost.SmartPtr. Moved shared_container_iterator.hpp into the iterator directory and left a forwarding header for backward compatibility.
15 lines
523 B
C++
15 lines
523 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_SHARED_CONTAINER_ITERATOR_HPP
|
|
#define BOOST_SHARED_CONTAINER_ITERATOR_HPP
|
|
|
|
// This is a deprecated header left for backward compatibility.
|
|
// Please use <boost/iterator/shared_container_iterator.hpp> instead.
|
|
|
|
#include <boost/iterator/shared_container_iterator.hpp>
|
|
|
|
#endif // BOOST_SHARED_CONTAINER_ITERATOR_HPP
|