Boost logo

Boost :

Subject: Re: [boost] [review] The review of Boost.DoubleEnded starts today: September 21 - September 30
From: degski (degski_at_[hidden])
Date: 2017-09-28 08:49:47


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>;

degski

-- 
"*Ihre sogenannte Religion wirkt bloß wie ein Opiat reizend, betäubend,
Schmerzen aus Schwäche stillend.*" - Novalis 1798

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