Re: [Boost-users] mpl programming task

9 Oct
2008
9 Oct
'08
11:15 p.m.
I think the following code would be easier: #include <map> #include <vector> typedef std::map<size_t, size_t> CInt2IntMap; typedef std::vector<size_t> CIntVector; static CInt2IntMap convert(const CIntVector &_r) { CInt2IntMap s; for (size_t i = 0; i < _r.size(); i++) s.insert(std::make_pair(_r[i], s.size())); return s; }
6070
Age (days ago)
6070
Last active (days ago)
0 comments
1 participants
participants (1)
-
peter_foelscheļ¼ agilent.com