PaddedVector() : storage_(), unpaddedEnd_(begin()) {}
/*! \brief Constructor that specifies the initial size. */
explicit PaddedVector(size_type count, const allocator_type& allocator = Allocator()) :
- storage_(count, allocator),
- unpaddedEnd_(begin() + count)
+ storage_(count, allocator), unpaddedEnd_(begin() + count)
{
// The count elements have been default inserted, and now
// the padding elements are added
}
/*! \brief Constructor that specifies the initial size and an element to copy. */
explicit PaddedVector(size_type count, value_type const& v, const allocator_type& allocator = Allocator()) :
- storage_(count, v, allocator),
- unpaddedEnd_(begin() + count)
+ storage_(count, v, allocator), unpaddedEnd_(begin() + count)
{
// The count elements have been default inserted, and now
// the padding elements are added
}
//! Default constructor with allocator
explicit PaddedVector(allocator_type const& allocator) :
- storage_(allocator),
- unpaddedEnd_(begin())
+ storage_(allocator), unpaddedEnd_(begin())
{
}
//! Copy constructor
* Leaves \c o in a valid state (ie the destructor can be
* called). */
PaddedVector(PaddedVector&& o) noexcept :
- storage_(std::exchange(o.storage_, {})),
- unpaddedEnd_(o.unpaddedEnd_)
+ storage_(std::exchange(o.storage_, {})), unpaddedEnd_(o.unpaddedEnd_)
{
}
/*! \brief Move constructor using \c alloc for the new vector.
* Leaves \c o in a valid state (ie. the destructor can be
* called). */
PaddedVector(PaddedVector&& o, const Allocator& alloc) noexcept :
- storage_(alloc),
- unpaddedEnd_(begin())
+ storage_(alloc), unpaddedEnd_(begin())
{
if (alloc == o.storage_.get_allocator())
{
}
//! Construct from an initializer list
PaddedVector(std::initializer_list<value_type> const& il) :
- storage_(il),
- unpaddedEnd_(storage_.end())
+ storage_(il), unpaddedEnd_(storage_.end())
{
// We can't choose the padding until we know the size of
// the normal vector, so we have to make the storage_ and