Server IP : 104.21.38.3 / Your IP : 162.158.170.163 Web Server : Apache System : Linux krdc-ubuntu-s-2vcpu-4gb-amd-blr1-01.localdomain 5.15.0-142-generic #152-Ubuntu SMP Mon May 19 10:54:31 UTC 2025 x86_64 User : www ( 1000) PHP Version : 7.4.33 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,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_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /www/server/mysql/src/boost/boost_1_59_0/boost/mpi/ |
Upload File : |
// Copyright (C) 2005-2006 Alain Miniussi <alain.miniussi -at- oca.eu>. // Use, modification and distribution is subject to the Boost Software // License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) // Message Passing Interface 1.1 -- Section 4. MPI Collectives /** @file inplace.hpp * * This header provides helpers to indicate to MPI collective operation * that a buffer can be use both as an input and output. */ #ifndef BOOST_MPI_INPLACE_HPP #define BOOST_MPI_INPLACE_HPP #include <boost/mpi/communicator.hpp> #include <vector> namespace boost { namespace mpi { /** * @brief Wrapper type to explicitly indicate that a input data * can be overriden with an output value. */ template <typename T> struct inplace_t { inplace_t(T& inout) : buffer(inout) {} T& buffer; }; template <typename T> struct inplace_t<T*> { inplace_t(T* inout) : buffer(inout) {} T* buffer; }; /** * @brief Wrapp a input data to indicate that it can be overriden * with an ouput value. * @param inout the contributing input value, it will be overriden * with the output value where one is expected. If it is a pointer, * the number of elements will be provided separatly. * @returns The wrapped value or pointer. */ template<typename T> inplace_t<T> inplace(T& inout) { return inplace_t<T>(inout); } /** * \overload */ template<typename T> inplace_t<T*> inplace(T* inout) { return inplace_t<T*>(inout); } } } // end namespace boost::mpi #endif // BOOST_MPI_INPLACE_HPP