What will happen in ‘all_of’ method if the range is empty?
A. Return true
B. Return false
C. Return nothing
D. None of the mentioned
Answer:A
What will happen in ‘all_of’ method if the range is empty?
A. Return true B. Return false C. Return nothing D. None of the mentioned
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.