Boost logo

Boost Users :

Subject: [Boost-users] [string algorithms] trim, functors
From: Gaydov Victor (victor.gaydov_at_[hidden])
Date: 2010-04-11 05:45:55


Hello. Could you answer these two questions:

1. Are there trim range algorithms that work with iterators, instead of
strings? (I didn't find such). If not, why not to add them? Something
like this: http://pastebin.org/146696

2. How can I use, for example, boost::algorithm::is_space() with
standard functors? This:

boost::not1(boost::algorithm::is_space())

doesn't work. It's enough to specialize
boost::unary_traits<boost::algorithm::detail::is_classifiedF>, but the
fact that 'is_classifiedF' is in 'detail' namespace is a bit confusing.
Is it ok to use it?

Thanks.


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net