Boost logo

Boost :

Subject: Re: [boost] [devector] optimum growing/insertion policy
From: Thorsten Ottosen (tottosen_at_[hidden])
Date: 2017-10-18 11:52:23

Den 18-10-2017 kl. 11:26 skrev Joaquin M López Muñoz via Boost:
> El 18/10/2017 a las 10:36, Thorsten Ottosen via Boost escribió:
>> Den 17-10-2017 kl. 14:08 skrev Joaquin M López Muñoz via Boost:
>>> Any policy can in principle be implemented behind the following
>>> interface:
>>>    struct free_space{std::size_t back,front;};
>>>    free_space query_for_insertion(std::size_t pos,std::size_t n);
>> n is the current size of the container or the capacity?
> n is meant to indicate the number of elements being inserted at once.

Of course :-)

We need an additional interface function for handling clear, don't we?


Boost list run by bdawes at, gregod at, cpdaniel at, john at