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

◆ operator[]() [2/2]

template<typename type_t >
virtual type_t & xtd::collections::generic::ilist< type_t >::operator[] ( xtd::size  index)
pure virtual

Sets the element at the specified index.

Parameters
indexThe zero-based index of the element to set.
Remarks
This operator provides the ability to access a specific element in the collection by using the following syntax: my_collection[index].

Implemented in xtd::array_< type_t, 1, allocator_t >, xtd::basic_array< type_t, allocator_t >, xtd::basic_array< type_t, allocator_t >, and xtd::collections::generic::list< type_t, allocator_t >.