Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- struct Comp {
- bool operator()(const std::string &a, char b) {return a[0] < b;};
- bool operator()(char b, const std::string &a) {return b < a[0];};
- }
- std::equal_range(arr.begin(), arr.end(), pref, Comp{});
Add Comment
Please, Sign In to add comment