
28 Sep
2017
28 Sep
'17
8:16 a.m.
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