boost::mpi::is_commutative — 确定函数对象类型是否可交换。
// In header: <boost/mpi/operations.hpp> template<typename Op, typename T> struct is_commutative : public mpl::false_ { };
该特性用于确定操作 Op 应用于类型 T 的值时是否可交换。像 reduce 和 prefix_sum 这样的并行操作,如果操作是可交换的,可以更有效地实现。为了将一个操作标记为可交换,用户应该特化 is_commutative 并从类 mpl::true_ 派生。