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

◆ assign() [2/3]

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>>
template<typename input_iterator_t >
void xtd::collections::generic::list< type_t, allocator_t >::assign ( input_iterator_t  first,
input_iterator_t  last 
)
inline

Replaces the contents with copies of those in the range [first, last).

Parameters
firstThe first iterator the range to copy the elements from.
lastThe last iterator the range to copy the elements from.
Warning
The behavior is undefined if either argument is an iterator this current instance.