
29 Jan
2009
29 Jan
'09
noon
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<const X*,double> MyMap;
The keys in a map are immutable. remove_if tries to assign to the sequence elements. In Christ, Steven Watanabe