Boost logo

Boost :

Subject: Re: [boost] [review] The review of Boost.DoubleEnded starts today: September 21 - September 30
From: Thorsten Ottosen (tottosen_at_[hidden])
Date: 2017-09-28 08:16:43


Den 27-09-2017 kl. 23:07 skrev Benedek Thaler via Boost:
> On Tue, Sep 26, 2017 at 11:43 PM, Joaquin M López Muñoz via Boost <

>> 6. Why a batch_deque_policy wrapper rather than directly providing the
>> segment size
>> to batch_queue as in
>>
>> boost::double_ended::batch_deque<int,512>
>>
>
> This is to allow further customization points without an additional policy
> argument.
> One issue with the approach above: It isn't clear whether 512 is a number
> of elements or bytes.
> de::batch_deque<int, de::elements_per_segment<512>> is conceivable tough.
>

Also note that the most general thing would be to allow both

   de::batch_deque<int, de::elements_per_segment<512>>

and

   de::batch_deque<int, de::bytes_per_segment<512>>

-T


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