Boost logo

Boost :

Subject: [boost] [string algo] trim() requirements to high
From: Thorsten Ottosen (thorsten.ottosen_at_[hidden])
Date: 2009-07-16 09:49:15


Hi Pavol,

It seems to me that trim() and its variants that currently take a
Sequence argument can be made to work iterator ranges too.

For example:

boost::sub_range<std::string> foo = ...;
trim_left( foo );

The requirement would be

  trim_left: forward range
  trim_right: bidirectional range
  trim: bidirectional range

Am I missing something?

-Thorsten


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