Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
boost::mpi::is_commutative< Op, T > Struct Template Reference

Determine if a function object type is commutative. More...

#include <operations.hpp>

Inheritance diagram for boost::mpi::is_commutative< Op, T >:
Collaboration diagram for boost::mpi::is_commutative< Op, T >:

Detailed Description

template<typename Op, typename T>
struct boost::mpi::is_commutative< Op, T >

Determine if a function object type is commutative.

This trait determines if an operation Op is commutative when applied to values of type T. Parallel operations such as reduce and prefix_sum can be implemented more efficiently with commutative operations. To mark an operation as commutative, users should specialize is_commutative and derive from the class mpl::true_.


The documentation for this struct was generated from the following file: