std::list<T,Allocator>::front
来自cppreference.com
                    
                                        
                    
                    
                                                            
                    
|   reference front();  | 
||
|   const_reference front() const;  | 
||
返回到容器首元素的引用。
在空容器上对 front 的调用是未定义的。
参数
(无)
返回值
到首元素的引用
复杂度
常数
注解
对于容器 c ,表达式 c.front() 等价于 *c.begin() 。
示例
参阅
|    访问最后一个元素   (公开成员函数)  |