![]() System : Linux absol.cf 5.4.0-198-generic #218-Ubuntu SMP Fri Sep 27 20:18:53 UTC 2024 x86_64 User : www-data ( 33) PHP Version : 7.4.33 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, Directory : /proc/self/root/usr/include/boost/property_map/parallel/detail/ |
Upload File : |
// Copyright (C) 2007 Matthias Troyer // // Use, modification and distribution is subject to the Boost Software // License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at // // 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 #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