Skip to main content

  | मौसम…

411 समाचार
Public archive edition · Attributed source reporting with original dates · AI drafts are excluded

411 REFERENCE · Wikibooks

C++ Language/Std/Stl/Algorithms/ApplyingItemByItem/IgnoringPriorValues

Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.

Unlike the DoubleEach() example, this function ignores existing item-values: int Compute99() { return 99; }. The algorithm to use it is std::generate(v.begin(), v.end(), Compute99). Additional information about item-by-item processing that ignores prior values (includes interactive examples)