// { dg-options "-D_GLIBCXX_CONCEPT_CHECKS" } // { dg-do run { target c++11 } } #include #include #include #include #include template std::pair, std::istream_iterator> drop(Distance n, InputRange& rng) { return std::make_pair(std::next(std::istream_iterator(rng), n), std::istream_iterator() ); } int main() { std::stringstream x("let let there be rock"); x << std::noskipws; auto y = drop(4, x); std::string z(y.first, y.second); VERIFY(z == "let there be rock"); }