J
jose luis fernandez diaz
Hi,
This is my rtrim version:
inline void rtrim(string *ptr_s)
{
string::reverse_iterator rit= ptr_s->rbegin();
while(rit != ptr_s->rend() && *rit==' ') ptr_s->erase((++rit).base());
}
Can anyone give any hint to improve it ?
Thanks,
Jose Luis
This is my rtrim version:
inline void rtrim(string *ptr_s)
{
string::reverse_iterator rit= ptr_s->rbegin();
while(rit != ptr_s->rend() && *rit==' ') ptr_s->erase((++rit).base());
}
Can anyone give any hint to improve it ?
Thanks,
Jose Luis