forked from boostorg/iterator
Moved shared_container_iterator.hpp in iterator directory, modernized code.
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.
This commit is contained in:
1 parent
e446c6e05c
commit
a7150173ed
9 files changed
+230
-123
No files matched your search
+1
-1
@@ -74,5 +74,5 @@ test-suite iterator
|
||||
[ compile adl_test.cpp : <library>/boost/array//boost_array ]
|
||||
[ compile range_distance_compat_test.cpp : <library>/boost/range//boost_range ]
|
||||
|
||||
[ run shared_iterator_test.cpp ]
|
||||
[ run shared_iterator_test.cpp : : : <library>/boost/smart_ptr//boost_smart_ptr ]
|
||||
;
|
||||
Reference in new issue
Block a user