1 /* Copyright 2003-2021 Joaquin M Lopez Munoz.
2 * Distributed under the Boost Software License, Version 1.0.
3 * (See accompanying file LICENSE_1_0.txt or copy at
4 * http://www.boost.org/LICENSE_1_0.txt)
6 * See http://www.boost.org/libs/multi_index for library home page.
9 #ifndef BOOST_MULTI_INDEX_DETAIL_INVALIDATE_ITERATORS_HPP
10 #define BOOST_MULTI_INDEX_DETAIL_INVALIDATE_ITERATORS_HPP
18 namespace multi_index{
22 /* invalidate_iterators mimics the interface of index_access_sequence (see
23 * index_access_sequence.hpp) but returns dummy indices whose iterator type
24 * won't ever match those of the source: the net effect is that safe iterator
25 * transfer resolves to iterator invalidation, so backbone function invocation
26 * extract_(x,invalidate_iterators()) is used in extraction scenarios other
30 struct invalidate_iterators
32 typedef void iterator;
34 invalidate_iterators& get(){return *this;}
35 invalidate_iterators& next(){return *this;}
38 } /* namespace multi_index::detail */
40 } /* namespace multi_index */
42 } /* namespace boost */