Why was pair range access removed from C++11?

前端 未结 3 738
半阙折子戏
半阙折子戏 2020-12-02 12:08

I just discovered that at one point, the C++11 draft had std::begin/std::end overloads for std::pair that allowed treating a pair of i

3条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-02 12:34

    You can use boost::make_iterator_range. It constructs an iterator_range with begin() and end() methods. boost::make_iterator_range can accept std::pair of iterators.

提交回复
热议问题