|
Boost Users : |
Subject: Re: [Boost-users] [string algorithms] trim, functors
From: Mathias Gaunard (mathias.gaunard_at_[hidden])
Date: 2010-04-11 13:40:23
Gaydov Victor a écrit :
> 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
You found it yourself: boost::algorithm::detail::trim_end
I suppose it could become first-class, but there are better solutions,
like taking a range and returning a subrange.
> 2. How can I use, for example, boost::algorithm::is_space() with
> standard functors? This:
>
> boost::not1(boost::algorithm::is_space())
>
> doesn't work.
What's the error? I guess it doesn't work because it doesn't have a
result_type typedef.
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