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 // front_insert_iterator
14 // front_insert_iterator<Cont>&
15 // operator=(const Cont::value_type& value);
25 const typename C::value_type v = typename C::value_type();
26 std::front_insert_iterator<C> i(c);
28 assert(c.front() == v);
35 Copyable() : data_(0) {}
36 ~Copyable() {data_ = -1;}
38 friend bool operator==(const Copyable& x, const Copyable& y)
39 {return x.data_ == y.data_;}
44 test(std::list<Copyable>());