Fil de discussion Masalan
4 messages · –て #include <iostream> #include <vector> #include <algorithm> #include <string> using namespace std; bool binary_pred(string s1, string s2) { return true; } int main(void) { vector<string> v1 = {"one", "two", "three"}; vector<string> v2 = {"ONE", "THREE", "THREE"}; bool result; result = equal(v1.begin(), v1.end(), v2.begin(), binary_pred); if (result == true) cout << "Vector range is equal." << endl; return 0; }M