System documentation of the GNU Image-Finding Tool

map_to_list.h
1 
17 #ifndef _MAPTOLIST
18 #define _MAPTOLIST
19 
20 #include <map>
21 #include <list>
22 
23 
29 template<class key,class element>
30 list<element>* map_to_list(const typename map<key,element>::const_iterator inBegin,
31  const typename map<key,element>::const_iterator inEnd){
32  list<element> lNewList=new list<element>;
33 
34  while(inBegin!=inEnd){
35  lNewList->push_back((inBegin++).second);
36  }
37 
38  return lNewList;
39 }
40 
41 #endif

Need for discussion? Want to contribute? Contact
help-gift@gnu.org Generated using Doxygen