Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- template <typename Beg, typename End, typename Sought>
- auto find_prefix(const Beg beg,
- const End end,
- Sought sought)
- {
- auto low = std::lower_bound(beg, end, sought);
- ++sought.back();
- auto up = std::lower_bound(beg, end, sought);
- return std::make_tuple(low, up);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement