File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -46,3 +46,4 @@ add_mpi_omp_example(bag_insert_rate)
46
46
add_mpi_omp_example (word_counter )
47
47
add_mpi_omp_example (lambda_optional_arguments )
48
48
add_mpi_omp_example (map_visit_optional_arguments )
49
+ add_mpi_omp_example (map_set )
Original file line number Diff line number Diff line change 10
10
int main (int argc, char ** argv) {
11
11
ygm::comm world (&argc, &argv);
12
12
13
- ygm::container::set<std::string> str_set (world);
13
+ ygm::container::set<std::string> str_set (world);
14
14
ygm::container::map<std::string, std::string> str_map (world);
15
15
16
16
if (world.rank () == 0 ) {
@@ -25,11 +25,10 @@ int main(int argc, char** argv) {
25
25
str_map.async_set (" strawberry" , " raspberry" );
26
26
}
27
27
28
- str_set.all_for_all (
29
- [](auto k) { std::cout << " str_set: " << k << std::endl; });
28
+ str_set.for_all ([](auto k) { std::cout << " str_set: " << k << std::endl; });
30
29
31
30
str_map.for_all ([](auto kv) {
32
31
std::cout << " str_map: " << kv.first << " -> " << kv.second << std::endl;
33
32
});
34
33
return 0 ;
35
- }
34
+ }
You can’t perform that action at this time.
0 commit comments