Difference between revisions of "Template:cpp/container/push back"
From cppreference.com
m (Text replace - "mark c++11 feature" to "mark since c++11") |
(+reqs) |
||
Line 18: | Line 18: | ||
{{param list item | value | the value of the element to append}} | {{param list item | value | the value of the element to append}} | ||
{{param list end}} | {{param list end}} | ||
+ | |||
+ | ===Requirements=== | ||
+ | 1) {{tt|value}} shall be {{concept|CopyInsertable}} | ||
+ | |||
+ | 2) {{tt|value}} shall be {{concept|MoveInsertable}} | ||
===Return value=== | ===Return value=== |
Revision as of 08:04, 6 April 2012
Template:cpp/container//sidebar Template:ddcl list begin <tr class="t-dcl ">
<td class="t-dcl-nopad">void push_back( const T& value );
</td>
<td class="t-dcl-nopad"> </td> <td class="t-dcl-nopad"> </td> </tr> <tr class="t-dcl ">
<td >void push_back( T&& value );
</td>
<td class="t-dcl-nopad"> </td> <td > (since C++11) </td> </tr> Template:ddcl list end
Appends the given element value
to the end of the container.
Information on iterator invalidation is copied from here |
Contents |
Parameters
value | - | the value of the element to append |
Requirements
1) value
shall be Template:concept
2) value
shall be Template:concept
Return value
(none)
Complexity
Constant.