1//===----------------------------------------------------------------------===// 2// 3// The LLVM Compiler Infrastructure 4// 5// This file is dual licensed under the MIT and the University of Illinois Open 6// Source Licenses. See LICENSE.TXT for details. 7// 8//===----------------------------------------------------------------------===// 9 10// UNSUPPORTED: c++98, c++03 11 12// <iterator> 13 14// front_insert_iterator 15 16// front_insert_iterator<Cont>& 17// operator=(Cont::value_type&& value); 18 19#include <iterator> 20#include <list> 21#include <memory> 22#include <cassert> 23 24template <class C> 25void 26test(C c) 27{ 28 std::front_insert_iterator<C> i(c); 29 i = typename C::value_type(); 30 assert(c.front() == typename C::value_type()); 31} 32 33int main() 34{ 35 test(std::list<std::unique_ptr<int> >()); 36} 37