Subject: Re: [Boost-bugs] [Boost C++ Libraries] #3168: Request for boost::array::fill(const T&), following C++0x
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-08-20 13:28:14
#3168: Request for boost::array::fill(const T&), following C++0x
------------------------------+---------------------------------------------
Reporter: niels_dekker | Owner: steven_watanabe
Type: Feature Requests | Status: assigned
Milestone: Boost 1.40.0 | Component: array
Version: Boost 1.39.0 | Severity: Problem
Keywords: |
------------------------------+---------------------------------------------
Comment(by steven_watanabe):
Replying to [comment:3 niels_dekker]:
> Thanks for assigning the ticket, Steven. Clearly, the intention of the
ticket is to keep ''boost::array'' in sync with ''std::array'' from C++0x.
Only after submitting the ticket, I realized that none of the other STL
containers has a ''fill'' member function. And it isn't really clear to me
why ''std::array'' has one. (I might as well use the range-based ''fill''
algorithm instead.) What do you think?
On the other hand, the other standard containers have a
{{{
void assign(size_type n, const T& u);
}}}
fill is the equivalent for array since the size of
an array is fixed.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/3168#comment:4> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:01 UTC