Closed vaibspider closed 3 years ago
On page no. 577, in the any_of algorithm description, following sentence is present.
The algorithm returns false if the target sequence is empty or if pred is true for any element in the sequence; otherwise, it returns false
Instead of false(highlighted above), it should be true.
any_of returns false if the sequence is empty: https://en.cppreference.com/w/cpp/algorithm/all_any_none_of
The sentence can be reworded to be clearer, that's true.
On page no. 577, in the any_of algorithm description, following sentence is present.
Instead of false(highlighted above), it should be true.