|
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 10:52:14
Den 28-09-2017 kl. 10:49 skrev degski via Boost:
> On 28 September 2017 at 11:16, Thorsten Ottosen via Boost <
> boost_at_[hidden]> wrote:
>
>>
>> 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>>
>
>
> One can do better and have:
>
> de::segment_policy<std::size_t bytes, std::size_t count = 1>
>
> The policy expressed is: "the greater of bytes and count * sizeof (
> value_type )".
>
> So boost:container::deque would, as implemented now, have:
>
> de::segment_policy<512>;
>
> VS's would be:
>
> de::segment_policy<16>;
How is that better? Then I have to look up the documentation to
understand how big the segment is...
kind regards
-Thorsten
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk