mirror of
https://github.com/boostorg/multi_index.git
synced 2025-05-09 23:14:04 +00:00
avoided deprecated #includes
This commit is contained in:
parent
e69466039d
commit
99430f9edd
@ -1,6 +1,6 @@
|
|||||||
/* Boost.MultiIndex example of use of rearrange facilities.
|
/* Boost.MultiIndex example of use of rearrange facilities.
|
||||||
*
|
*
|
||||||
* Copyright 2003-2015 Joaquin M Lopez Munoz.
|
* Copyright 2003-2020 Joaquin M Lopez Munoz.
|
||||||
* Distributed under the Boost Software License, Version 1.0.
|
* Distributed under the Boost Software License, Version 1.0.
|
||||||
* (See accompanying file LICENSE_1_0.txt or copy at
|
* (See accompanying file LICENSE_1_0.txt or copy at
|
||||||
* http://www.boost.org/LICENSE_1_0.txt)
|
* http://www.boost.org/LICENSE_1_0.txt)
|
||||||
@ -14,7 +14,6 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <boost/config.hpp>
|
#include <boost/config.hpp>
|
||||||
#include <boost/detail/iterator.hpp>
|
|
||||||
#include <boost/multi_index_container.hpp>
|
#include <boost/multi_index_container.hpp>
|
||||||
#include <boost/multi_index/random_access_index.hpp>
|
#include <boost/multi_index/random_access_index.hpp>
|
||||||
#include <boost/random/binomial_distribution.hpp>
|
#include <boost/random/binomial_distribution.hpp>
|
||||||
@ -140,11 +139,11 @@ void riffle_shuffle(
|
|||||||
{
|
{
|
||||||
static boost::mt19937 rnd_gen;
|
static boost::mt19937 rnd_gen;
|
||||||
|
|
||||||
typedef typename boost::detail::iterator_traits<
|
typedef typename std::iterator_traits<
|
||||||
RandomAccessIterator>::difference_type difference_type;
|
RandomAccessIterator>::difference_type difference_type;
|
||||||
typedef boost::binomial_distribution<
|
typedef boost::binomial_distribution<
|
||||||
difference_type> rnd_cut_select_type;
|
difference_type> rnd_cut_select_type;
|
||||||
typedef boost::uniform_real<> rnd_deck_select_type;
|
typedef boost::uniform_real<> rnd_deck_select_type;
|
||||||
|
|
||||||
rnd_cut_select_type cut_select(last-first);
|
rnd_cut_select_type cut_select(last-first);
|
||||||
RandomAccessIterator middle=first+cut_select(rnd_gen);
|
RandomAccessIterator middle=first+cut_select(rnd_gen);
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* Copyright 2003-2016 Joaquin M Lopez Munoz.
|
/* Copyright 2003-2020 Joaquin M Lopez Munoz.
|
||||||
* Distributed under the Boost Software License, Version 1.0.
|
* Distributed under the Boost Software License, Version 1.0.
|
||||||
* (See accompanying file LICENSE_1_0.txt or copy at
|
* (See accompanying file LICENSE_1_0.txt or copy at
|
||||||
* http://www.boost.org/LICENSE_1_0.txt)
|
* http://www.boost.org/LICENSE_1_0.txt)
|
||||||
@ -14,7 +14,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <boost/config.hpp> /* keep it first to prevent nasty warns in MSVC */
|
#include <boost/config.hpp> /* keep it first to prevent nasty warns in MSVC */
|
||||||
#include <boost/detail/no_exceptions_support.hpp>
|
#include <boost/core/no_exceptions_support.hpp>
|
||||||
#include <boost/noncopyable.hpp>
|
#include <boost/noncopyable.hpp>
|
||||||
#include <boost/serialization/serialization.hpp>
|
#include <boost/serialization/serialization.hpp>
|
||||||
#include <boost/type_traits/aligned_storage.hpp>
|
#include <boost/type_traits/aligned_storage.hpp>
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
#include <boost/config.hpp> /* keep it first to prevent nasty warns in MSVC */
|
#include <boost/config.hpp> /* keep it first to prevent nasty warns in MSVC */
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include <boost/core/addressof.hpp>
|
#include <boost/core/addressof.hpp>
|
||||||
#include <boost/detail/no_exceptions_support.hpp>
|
#include <boost/core/no_exceptions_support.hpp>
|
||||||
#include <boost/move/core.hpp>
|
#include <boost/move/core.hpp>
|
||||||
#include <boost/multi_index/detail/allocator_traits.hpp>
|
#include <boost/multi_index/detail/allocator_traits.hpp>
|
||||||
#include <boost/multi_index/detail/auto_space.hpp>
|
#include <boost/multi_index/detail/auto_space.hpp>
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
|
|
||||||
#include <boost/config.hpp> /* keep it first to prevent nasty warns in MSVC */
|
#include <boost/config.hpp> /* keep it first to prevent nasty warns in MSVC */
|
||||||
#include <boost/core/addressof.hpp>
|
#include <boost/core/addressof.hpp>
|
||||||
#include <boost/detail/no_exceptions_support.hpp>
|
#include <boost/core/no_exceptions_support.hpp>
|
||||||
#include <boost/detail/workaround.hpp>
|
#include <boost/detail/workaround.hpp>
|
||||||
#include <boost/move/core.hpp>
|
#include <boost/move/core.hpp>
|
||||||
#include <boost/move/utility_core.hpp>
|
#include <boost/move/utility_core.hpp>
|
||||||
|
@ -44,7 +44,7 @@
|
|||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include <boost/call_traits.hpp>
|
#include <boost/call_traits.hpp>
|
||||||
#include <boost/core/addressof.hpp>
|
#include <boost/core/addressof.hpp>
|
||||||
#include <boost/detail/no_exceptions_support.hpp>
|
#include <boost/core/no_exceptions_support.hpp>
|
||||||
#include <boost/detail/workaround.hpp>
|
#include <boost/detail/workaround.hpp>
|
||||||
#include <boost/foreach_fwd.hpp>
|
#include <boost/foreach_fwd.hpp>
|
||||||
#include <boost/iterator/reverse_iterator.hpp>
|
#include <boost/iterator/reverse_iterator.hpp>
|
||||||
|
@ -113,7 +113,6 @@
|
|||||||
#if defined(BOOST_MULTI_INDEX_ENABLE_SAFE_MODE)
|
#if defined(BOOST_MULTI_INDEX_ENABLE_SAFE_MODE)
|
||||||
#include <boost/config.hpp> /* keep it first to prevent nasty warns in MSVC */
|
#include <boost/config.hpp> /* keep it first to prevent nasty warns in MSVC */
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include <boost/detail/iterator.hpp>
|
|
||||||
#include <boost/multi_index/detail/access_specifier.hpp>
|
#include <boost/multi_index/detail/access_specifier.hpp>
|
||||||
#include <boost/multi_index/detail/iter_adaptor.hpp>
|
#include <boost/multi_index/detail/iter_adaptor.hpp>
|
||||||
#include <boost/multi_index/safe_mode_errors.hpp>
|
#include <boost/multi_index/safe_mode_errors.hpp>
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* Copyright 2003-2013 Joaquin M Lopez Munoz.
|
/* Copyright 2003-2020 Joaquin M Lopez Munoz.
|
||||||
* Distributed under the Boost Software License, Version 1.0.
|
* Distributed under the Boost Software License, Version 1.0.
|
||||||
* (See accompanying file LICENSE_1_0.txt or copy at
|
* (See accompanying file LICENSE_1_0.txt or copy at
|
||||||
* http://www.boost.org/LICENSE_1_0.txt)
|
* http://www.boost.org/LICENSE_1_0.txt)
|
||||||
@ -13,7 +13,7 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <boost/detail/no_exceptions_support.hpp>
|
#include <boost/core/no_exceptions_support.hpp>
|
||||||
#include <boost/mpl/if.hpp>
|
#include <boost/mpl/if.hpp>
|
||||||
|
|
||||||
namespace boost{
|
namespace boost{
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* Copyright 2003-2016 Joaquin M Lopez Munoz.
|
/* Copyright 2003-2020 Joaquin M Lopez Munoz.
|
||||||
* Distributed under the Boost Software License, Version 1.0.
|
* Distributed under the Boost Software License, Version 1.0.
|
||||||
* (See accompanying file LICENSE_1_0.txt or copy at
|
* (See accompanying file LICENSE_1_0.txt or copy at
|
||||||
* http://www.boost.org/LICENSE_1_0.txt)
|
* http://www.boost.org/LICENSE_1_0.txt)
|
||||||
@ -14,7 +14,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <boost/config.hpp> /* keep it first to prevent nasty warns in MSVC */
|
#include <boost/config.hpp> /* keep it first to prevent nasty warns in MSVC */
|
||||||
#include <boost/detail/no_exceptions_support.hpp>
|
#include <boost/core/no_exceptions_support.hpp>
|
||||||
#include <boost/multi_index/detail/seq_index_node.hpp>
|
#include <boost/multi_index/detail/seq_index_node.hpp>
|
||||||
#include <boost/limits.hpp>
|
#include <boost/limits.hpp>
|
||||||
#include <boost/type_traits/aligned_storage.hpp>
|
#include <boost/type_traits/aligned_storage.hpp>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user