File indexing completed on 2025-01-18 09:37:20
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013 #ifndef BOOST_GRAPH_PARALLEL_CONTAINER_TRAITS_HPP
0014 #define BOOST_GRAPH_PARALLEL_CONTAINER_TRAITS_HPP
0015
0016 #ifndef BOOST_GRAPH_USE_MPI
0017 #error "Parallel BGL files should not be included unless <boost/graph/use_mpi.hpp> has been included"
0018 #endif
0019
0020 namespace boost { namespace graph { namespace parallel {
0021
0022 template<typename T>
0023 struct process_group_type
0024 {
0025 typedef typename T::process_group_type type;
0026 };
0027
0028 template<typename T>
0029 inline typename process_group_type<T>::type
0030 process_group(const T& x)
0031 { return x.process_group(); }
0032
0033
0034
0035 template<typename Container>
0036 inline typename process_group_type<Container>::type
0037 process_group_adl(const Container& container)
0038 {
0039 return process_group(container);
0040 }
0041
0042
0043 } } }
0044
0045 #endif