- Timestamp:
- Apr 2, 2011, 12:22:22 AM (15 years ago)
- Children:
- 6aa233
- Parents:
- 296839
- git-author:
- Frederik Heber <heber@…> (04/01/11 18:38:15)
- git-committer:
- Frederik Heber <heber@…> (04/02/11 00:22:22)
- File:
-
- 1 edited
-
src/Helpers/enumeration.hpp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/Helpers/enumeration.hpp
r296839 r1b1ba8 13 13 #include <config.h> 14 14 #endif 15 16 #include <algorithm> 17 #include <map> 15 18 16 19 /************ struct to contain simple enumerations ***************/ … … 41 44 } 42 45 43 map<C,unsigned int> there;44 map<unsigned int,C> back;46 std::map<C,unsigned int> there; 47 std::map<unsigned int,C> back; 45 48 private: 46 49 unsigned int max; … … 61 64 enumeration<C> enumerate(ForwardIterator first,ForwardIterator last){ 62 65 enumeration<C> res; 63 for_each(first,last,bind1st(mem_fun(&enumeration<C>::add),&res));66 std::for_each(first,last,bind1st(mem_fun(&enumeration<C>::add),&res)); 64 67 return res; 65 68 }
Note:
See TracChangeset
for help on using the changeset viewer.
