S
subramanian100in
Suppose I have
class WordAndLineNumbers
{
public:
void print( );
// other member functions
private:
// data members
};
vector<WordAndLineNumbers> v;
for_each( v.begin( ), v.end( ), mem_fun(&WordAndLineNumbers:rint));
The above usage of mem_fun gives compilation error.
Kindly correct me and give the right syntax for mem_fun.
Thanks
V.Subramanian
class WordAndLineNumbers
{
public:
void print( );
// other member functions
private:
// data members
};
vector<WordAndLineNumbers> v;
for_each( v.begin( ), v.end( ), mem_fun(&WordAndLineNumbers:rint));
The above usage of mem_fun gives compilation error.
Kindly correct me and give the right syntax for mem_fun.
Thanks
V.Subramanian