Boost logo

Boost :

Subject: Re: [boost] Is Boost interested in the Boost-based Base64 library
From: Olaf van der Spek (ml_at_[hidden])
Date: 2011-06-09 15:26:21


On Thu, Jun 9, 2011 at 9:21 PM, Stewart, Robert <Robert.Stewart_at_[hidden]> wrote:
>> std::vector< int > v{ 1, 2, 3 };
>> auto it = std::find( v.begin(), v.end(), 2 );
>>
>> But Boost.Range provides "less flexible" solution:
>>
>> std::vector< int > v{ 1, 2, 3 };
>> auto it = boost::range::find( v, 2 );
>>
>> IMO, this solution is much easier and safer, but less flexible.
>
> Since I suggested iterators and ranges as the interface, and your examples implied neither, I fail to understand how your answer actually bears on my suggestion.  Does your interface support ranges without your having shown it?  Is there output iterator support?

I assume it's pretty easy to provide both APIs.

Olaf


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