
11 Apr
2010
11 Apr
'10
5:40 p.m.
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.