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

◆ index_of() [2/3]

template<typename type_t >
virtual xtd::size xtd::collections::generic::list< type_t >::index_of ( const type_t &  value,
xtd::size  index 
) const
inlinevirtual

Determines the index of a specific item in the xtd::collections::generic::list <type_t>.

Parameters
valueThe object to locate in the xtd::collections::generic::list <type_t>.
indexThe zero-based starting index of the search.
Returns
The index of value if found in the xtd::collections::generic::list; otherwise, xtd::collections::generic::ilist::npos.
Exceptions
xtd::argument_out_of_range_exception`index` is outside the range of valid indexes for the xtd::collections::generic::list <type_t>.