29 Jan
2009
29 Jan
'09
7 p.m.
AMDG MichaĆ Nowotka wrote:
void clean_data (MyMap& map) { remove_if(map.begin(), map.end(), (&lambda::_1 )->*(&pair< X* const, double >::second) <= m_epsilon); }
where:
typedef std::map
MyMap;
The keys in a map are immutable. remove_if tries to assign to the sequence elements. In Christ, Steven Watanabe