C++23 introduced two new algorithms in the ranges namespace. - std::ranges::contains - std::ranges::contains_subrange These two algorithms do not introduce novel behaviour; instead, they remove the need to translate the results of std::ranges::find and std::ranges::search. Compile Explorer link: https://lnkd.in/ee2AUBfj #cpp #cplusplus #coding #programming #dailybiteofcpp
Much needed...
HCL Technologies•474 followers
2yHi Šimon Tóth, Can we use lambda function as second parameter in std::ranges::contains().