What will happen in ‘all_of’ method if the range is empty?

a) Return true
b) Return false
c) Return nothing
d) Return error

1 thought on “What will happen in ‘all_of’ method if the range is empty?”

  1. a
    Explanation: Returns true if pred returns true for all the elements in the range [first, last) or if the range is empty, and false otherwise.

Leave a Comment