Boost logo

Boost :

From: Martin Wille (mw8329_at_[hidden])
Date: 2003-10-20 00:53:13


Darren Cook wrote:
> The below (*) argument seems convincing, so I think explicitly named
> _inplace() functions would be better.
>
> (not had chance to look at the library yet however)
>
>>>> s.trim() is what IMHO would be an intuitive interface to changes s's
>>>> state. Sadly, it's not possible to provide it.
>
>
> A boost::string that derived from std::string and added all the
> _inplace() functions would be nice.

How about inplace(some_string).trim()?

The inplace-view could also be used for other containers than
std::string.

Regards,
m


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk