I could not understand the difference between these two algorithms.
string s = "(double) k / 12"; auto pred = [](char c) { return c == '/'; }; bool b1 = is_partitioned(s.begin(), s.end(), pred); bool b2 = all_of(s.begin(), s.end(), pred); cout << boolalpha << b1 << endl /*false*/ << b2; /*false */ I read how they are implemented, but did not find the difference. And what is the difference between these two algorithms, who will help to understand? Adding to the question:
In order for me to understand better, I ask you to add symbols in my example or change the predicate so that the result of the two algorithms is different.