|
Boost : |
Subject: Re: [boost] [container] varray aka static_vector
From: Nevin Liber (nevin_at_[hidden])
Date: 2013-02-12 17:54:04
On 12 February 2013 16:22, Krzysztof Czainski <1czajnik_at_[hidden]> wrote:
>
> If emplace_back() didn't zero-initialize PODs, it would be inconsistent
> with std containers,
Please be precise; it is only inconsistent with the standard containers
when using the default argument for the allocator (aka std::allocator).
The standard containers, at least in C++11, have no embedded knowledge on
how to construct/destroy their elements; they merely delegate that
functionality off to the allocator.
-- Nevin ":-)" Liber <mailto:nevin_at_[hidden]> (847) 691-1404
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk