Opened 10 years ago
Closed 10 years ago
#6904 closed Feature Requests (wontfix)
Provide boost::algorithm::all_of for non-const ranges
Reported by: | Owned by: | Marshall Clow | |
---|---|---|---|
Milestone: | To Be Determined | Component: | algorithm |
Version: | Boost Development Trunk | Severity: | Problem |
Keywords: | Cc: |
Description
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.
Change History (2)
comment:1 by , 10 years ago
comment:2 by , 10 years ago
Resolution: | → wontfix |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
In C++11, std::all_of is listed as a "non-modifying sequence operation".