Hello
I have a map with int key and object element:
I want to erase all object elements from some_map which have somenum (get_somenum()) smaller than number 10.Code:map<unsigned int, object> some_map; class object { public: int get_somenum() { return somenum; } private: int somenum; };
What is the easiest way to do that in one line with those c++ algorithms like std::sort, boost::bind, ..?
Many thanks in advance!