Namespaces
Variants
Views
Actions

Difference between revisions of "Template:cpp/container/front"

From cppreference.com
m (Text replace - "{{returns}}" to "===Return value===")
m (Text replace - "{{complex}}" to "===Complexity===")
Line 22: Line 22:
  
 
<!-- ======== -->
 
<!-- ======== -->
{{complex}}
+
===Complexity===
 
{{complex constant}}
 
{{complex constant}}
  

Revision as of 17:55, 2 August 2011

Template:cpp/container//sidebar Template:ddcl list begin <tr class="t-dcl ">

<td >
reference front();
</td>

<td class="t-dcl-nopad"> </td> <td > Template:cpp/container/mark c++0x feature </td> </tr> <tr class="t-dcl ">

<td >
const_reference front() const;
</td>

<td class="t-dcl-nopad"> </td> <td > Template:cpp/container/mark c++0x feature </td> </tr> Template:ddcl list end

Returns reference to the first element in the container.

Parameters

Template:param none

Return value

reference to the first element

Complexity

Template:complex constant

Template:see also

Template:cpp/container/dcl list back