std::vector default default and move constructors

François Dumont frs.dumont@gmail.com
Mon Aug 21 19:16:00 GMT 2017


Following feedback on std::list patch this one had the same problem of 
unused code being deleted. So here is a new version.

Ok to commit ?

François

On 28/07/2017 18:45, François Dumont wrote:
> Hi
>
>     There was a little issue in this patch, here is the correct version.
>
> François
>
>
> On 23/07/2017 19:41, François Dumont wrote:
>> Hi
>>
>>     Is it time now to consider this patch ?
>>
>>     * include/bits/stl_vector.h
>>     (_Vector_impl_data): New.
>>     (_Vector_impl): Inherit from latter.
>>     (_Vertor_impl(_Vector_impl&&, _Tp_alloc_type&&)): New.
>>     (_Vector_base(_Vector_base&&, const allocator_type&)): Use latter.
>>     (_Vector_base()): Default.
>>     (_Vector_base(size_t)): Delete.
>>     (_Vector_base(_Tp_alloc_type&&)): Delete.
>>     (_Vector_base(_Vector_base&&)): Default.
>>     (vector()): Default.
>>     (vector(vector&&, const allocator_type&, true_type)): New.
>>     (vector(vector&&, const allocator_type&, false_type)): New.
>>     (vector(vector&&, const allocator_type&)): Use latters.
>>
>> Tested under linux x86_64.
>>
>> François
>>
>>
>

-------------- next part --------------
A non-text attachment was scrubbed...
Name: vector.patch
Type: text/x-patch
Size: 10123 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20170821/49b5c705/attachment.bin>


More information about the Libstdc++ mailing list