4 std::pair<unsigned int,unsigned int>
6 unsigned int nParts = 0;
7 unsigned int nVerts = 0;
12 nParts += (*itr)->particles_size();
13 nVerts += (*itr)->vertices_size();
16 return std::make_pair( nParts, nVerts );
19 std::map<std::string, unsigned long int> names_to_name_index_map(
const std::vector<std::string> &
input )
21 std::map<std::string, unsigned long int>
result;
22 unsigned long int i=0;
27 std::vector<std::pair<int,int> > vector_to_vector_int_int(
const std::vector<int> &
input )
30 std::vector<std::pair<int,int> >
result;
31 unsigned long int i=1;
32 for (
const auto&
a:
input) {
result.push_back(std::pair<int,int>(
i,
a));
i++;}