![]() |
![]()
| ![]() |
![]()
NAMEstd::list::front - std::list::front Synopsis reference front();
Parameters(none) Return valuereference to the first element ComplexityConstant NotesFor a container c, the expression c.front() is equivalent to *c.begin(). ExampleThe following code uses front to display the first element of a std::list<char>: // Run this code
Output:The first character is 'o'. See also back access the last element
|