1 //===----------------------------------------------------------------------===//
3 // The LLVM Compiler Infrastructure
5 // This file is dual licensed under the MIT and the University of Illinois Open
6 // Source Licenses. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
12 // template <InsertionContainer Cont>
13 // insert_iterator<Cont>
14 // inserter(Cont& x, Cont::iterator i);
19 #include "nasty_containers.hpp"
25 std::insert_iterator<C> i = std::inserter(c, c.end());
27 assert(c.size() == 1);
28 assert(c.back() == 0);
33 test(std::vector<int>());
34 test(nasty_vector<int>());