diff options
Diffstat (limited to 'boost/graph/parallel/detail/untracked_pair.hpp')
-rw-r--r-- | boost/graph/parallel/detail/untracked_pair.hpp | 78 |
1 files changed, 2 insertions, 76 deletions
diff --git a/boost/graph/parallel/detail/untracked_pair.hpp b/boost/graph/parallel/detail/untracked_pair.hpp index 3554910f07..7c3ca9aa27 100644 --- a/boost/graph/parallel/detail/untracked_pair.hpp +++ b/boost/graph/parallel/detail/untracked_pair.hpp @@ -6,80 +6,6 @@ // This file contains helper data structures for use in transmitting // properties. The basic idea is to optimize away any storage for the // properties when no properties are specified. -#ifndef BOOST_PARALLEL_DETAIL_UNTRACKED_PAIR_HPP -#define BOOST_PARALLEL_DETAIL_UNTRACKED_PAIR_HPP -#ifndef BOOST_GRAPH_USE_MPI -#error "Parallel BGL files should not be included unless <boost/graph/use_mpi.hpp> has been included" -#endif - -#include <boost/mpi/datatype.hpp> -#include <utility> // for std::pair -#include <boost/serialization/utility.hpp> - -namespace boost { namespace parallel { namespace detail { - -/** - * This structure is like std::pair, with the only difference - * that tracking in the serialization library is turned off. - */ - -template<typename T, typename U> -struct untracked_pair : public std::pair<T,U> -{ - untracked_pair() {} - - untracked_pair(const T& t, const U& u) - : std::pair<T,U>(t,u) {} - - template<class T1, class U1> - untracked_pair(std::pair<T1,U1> const& p) - : std::pair<T,U>(p) {} -}; - -template<typename T, typename U> -inline untracked_pair<T, U> -make_untracked_pair(const T& t, const U& u) -{ - return untracked_pair<T,U>(t,u); -} - -} } } // end namespace boost::parallel::detail - -namespace boost { namespace mpi { - -template<typename T, typename U> -struct is_mpi_datatype<boost::parallel::detail::untracked_pair<T, U> > - : is_mpi_datatype<std::pair<T,U> > {}; - -} } // end namespace boost::mpi - -namespace boost { namespace serialization { - -// pair -template<class Archive, class F, class S> -inline void serialize( - Archive & ar, - boost::parallel::detail::untracked_pair<F, S> & p, - const unsigned int /* file_version */ -){ - ar & boost::serialization::make_nvp("first", p.first); - ar & boost::serialization::make_nvp("second", p.second); -} - -template<typename T, typename U> -struct is_bitwise_serializable< - boost::parallel::detail::untracked_pair<T, U> > - : is_bitwise_serializable<std::pair<T, U> > {}; - -template<typename T, typename U> -struct implementation_level<boost::parallel::detail::untracked_pair<T, U> > - : mpl::int_<object_serializable> {} ; - -template<typename T, typename U> -struct tracking_level<boost::parallel::detail::untracked_pair<T, U> > - : mpl::int_<track_never> {} ; - -} } // end namespace boost::serialization - -#endif // BOOST_PARALLEL_DETAIL_UNTRACKED_PAIR_HPP +// File moved +#include <boost/property_map/parallel/detail/untracked_pair.hpp> |