![]() |
![]()
| ![]() |
![]()
NAMEstd::forward_list::front - std::forward_list::front Synopsis reference front(); (since C++11)
Parameters(none) Return valuereference to the first element ComplexityConstant NotesFor a container c, the expression c.front() is equivalent to *c.begin(). Example The following code uses front to display the first element of a
// Run this code
Output:The first character is 'o'.
|