C++Lists 赋值(assign) back begin clear empty end erase front get_allocator insert max_size merge pop_back pop_front push_back push_front rbegin remove remove_if rend resize reverse size 排序(sort) splice swap unique 赋值(assign) 语法: void assign( input_iterator start, input_iterator end ); void assign( size_type num, const TYPE &val ); assign()函数以迭代器start和end指示的范围为list