xtd
0.2.0
Loading...
Searching...
No Matches
◆
push_back()
[1/2]
template<typename type_t , typename allocator_t = xtd::collections::generic::helpers::allocator<typename std::conditional<std::is_same<bool, type_t>::value, char, type_t>::type>>
virtual void
xtd::collections::generic::list
< type_t, allocator_t >::push_back
(
const type_t &
value
)
inline
virtual
Appends the given element value to the end of the container.
Parameters
value
The value of the element to append.
Remarks
If after the operation the new
xtd::collections::generic::list::size()
is greater than old
xtd::collections::generic::list::capacity()
a reallocation takes place, in which case all iterators (including the
xtd::collections::generic::list::end()
iterator) and all references to the elements are invalidated. Otherwise only the
xtd::collections::generic::list::end()
iterator is invalidated.
The new element is initialized as a copy of
value
.
Examples
boxing.cpp
,
console_firework.cpp
, and
file_info_move_to.cpp
.
xtd
collections
generic
list
Generated on Sat Sep 14 2024 21:25:18 for xtd by
Gammasoft
. All rights reserved.