
9 Oct
2008
9 Oct
'08
11:11 p.m.
Anybody able to tell me how to convert the following code into it's mpl equivalent? #include <map> #include <vector> typedef std::map<size_t, size_t> CInt2IntMap; typedef std::vector<bool> CBooleanVector; static CInt2IntMap convert(const CBooleanVector &_r) { CInt2IntMap s; for (size_t i = 0; i < _r.size(); i++) if (_r[i]) s.insert(std::make_pair(i, s.size())); return s; }
6070
Age (days ago)
6070
Last active (days ago)
0 comments
1 participants
participants (1)
-
peter_foelsche@agilent.com