|
Boost Users : |
Subject: Re: [Boost-users] [string algorithms] trim, functors
From: Mathias Gaunard (mathias.gaunard_at_[hidden])
Date: 2010-04-12 18:28:07
Gaydov Victor a écrit :
> On Sun, 2010-04-11 at 21:02 +0200, Pavol Droba wrote:
>> Hi,
>>
>> On 11. 4. 2010 19:40, Mathias Gaunard wrote:
>>> 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.
>
> Is it ok, generally, to expect the code using functions from detail:: to
> work with future versions of boost?
No.
They're implementation details and shouldn't be used.
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