xtd 0.2.0
Loading...
Searching...
No Matches

◆ insert() [5/6]

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 iterator xtd::collections::generic::list< type_t, allocator_t >::insert ( const_iterator  pos,
const std::initializer_list< type_t > &  items 
)
inlinevirtual

Inserts elements at the specified location in the container.

Parameters
posthe iterator before which the content will be inserted (pos may be the end() iterator).
itemsThe initializer list to insert the values from.
Returns
The iterator pointing to the first element inserted, or pos if items is empty.
Remarks
Inserts value before pos.
Inserts elements from initializer list items before pos.