Guest User

Untitled

a guest
May 26th, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. struct Comp {
  2. bool operator()(const std::string &a, char b) {return a[0] < b;};
  3. bool operator()(char b, const std::string &a) {return b < a[0];};
  4. }
  5.  
  6. std::equal_range(arr.begin(), arr.end(), pref, Comp{});
Add Comment
Please, Sign In to add comment