42 template<
class type_t>
43 class ilist :
public icollection<type_t> {
103 [[nodiscard]] virtual auto
index_of(const type_t& item) const noexcept ->
xtd::
size = 0;
128 virtual auto operator [](
xtd::
size index) const -> const type_t& = 0;
132 virtual auto operator [](
xtd::
size index) -> type_t& = 0;
Contains xtd::epos constant.
Contains xtd::epos constant.
Contains xtd::collections::generic::icollection <type_t> interface.
constexpr xtd::size npos
Represents a value that is not a valid position in a collection.
Definition npos.hpp:26
size_t size
Represents a size of any object in bytes.
Definition size.hpp:23
The xtd::collections::generic namespace contains interfaces and classes that define generic collectio...
Definition comparer.hpp:16
static constexpr xtd::size bpos
Represents the index of the first valid element in a collection.
Definition ilist.hpp:66
static constexpr xtd::size epos
Represents the index of the last valid element in a collection.
Definition ilist.hpp:84
virtual auto index_of(const type_t &item) const noexcept -> xtd::size=0
Determines the index of a specific item in the xtd::collections::generic::ilist <type_t>.
virtual auto remove_at(xtd::size index) -> void=0
Removes the xtd::collections::generic::ilist <type_t> item at the specified index.
virtual auto insert(xtd::size index, const type_t &item) -> void=0
Inserts an item to the xtd::collections::generic::ilist <type_t> at the specified index.
virtual auto is_fixed_size() const noexcept -> bool=0
Gets a value indicating whether the xtd::collections::generic::ilist <type_t> has a fixed size.
The xtd::collections namespace contains interfaces and classes that define various collections of obj...
Definition any_pair.hpp:10
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition abstract_object.hpp:8
Contains xtd::npos constant.