1、list使用push_front函数插入,正向遍历list,实现数据先进先出:
3、list使用begin和end函数使用正向迭代器遍历list数据:
5、使用rbegin 和rend 函数,反向迭代器遍历list数据: