Subject: [Boost-bugs] [Boost C++ Libraries] #6904: Provide boost::algorithm::all_of for non-const ranges
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-05-15 21:03:54
#6904: Provide boost::algorithm::all_of for non-const ranges
-------------------------------------+--------------------------------------
Reporter: mlang@⦠| Owner: marshall
Type: Feature Requests | Status: new
Milestone: To Be Determined | Component: algorithm
Version: Boost Development Trunk | Severity: Problem
Keywords: |
-------------------------------------+--------------------------------------
Maybe I am not seeing something really obvious, but I would like to see
a version of boost::algorithm::all_of for non-const ranges.
In my use case, I am applying a visitor to a range (a STL container)
and want to see if all visitor calls returned true.
Since the visitors modify the individual values, the range
is non-const.
However, the range version of boost::algorithm::all_of explicitly requires
a const range while the underlying algorithm (std::all_of) does not.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/6904> 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:09 UTC