Skip to content

Commit

Permalink
using xtd::collections::generic::extensions::enumerable class
Browse files Browse the repository at this point in the history
  • Loading branch information
gammasoft71 committed Dec 22, 2024
1 parent 96292dc commit edc98f1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/xtd.core/include/xtd/array.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
#include "collections/generic/enumerator.hpp"
#include "collections/generic/icomparer.hpp"
#include "collections/generic/ilist.hpp"
#include "collections/generic/extensions/enumerable.hpp"
#include "abstract.hpp"
#include "core_export.hpp"
#include "int64.hpp"
Expand Down
2 changes: 1 addition & 1 deletion src/xtd.core/include/xtd/basic_array.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ namespace xtd {
/// xtd.core
/// @ingroup xtd_core system
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>>
class basic_array : public xtd::array_abstract_object, public xtd::collections::generic::ilist<type_t>, public xtd::iequatable<basic_array<type_t, allocator_t>> {
class basic_array : public xtd::array_abstract_object, public xtd::collections::generic::extensions::enumerable<basic_array<type_t, allocator_t>, type_t>, public xtd::collections::generic::ilist<type_t>, public xtd::iequatable<basic_array<type_t, allocator_t>> {
class comparer {
public:
comparer(const xtd::collections::generic::icomparer<type_t>* comparer) : comparer_(comparer) { }
Expand Down
3 changes: 2 additions & 1 deletion src/xtd.core/include/xtd/collections/generic/list.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
/// @brief Contains xtd::collections::generic::list struct.
/// @copyright Copyright (c) 2024 Gammasoft. All rights reserved.
#pragma once
#include "extensions/enumerable.hpp"
#include "helpers/allocator.hpp"
#include "ilist.hpp"
#include "../object_model/read_only_collection.hpp"
Expand Down Expand Up @@ -68,7 +69,7 @@ namespace xtd {
/// Finally, the xtd::collections::generic::list::clear method is used to remove all items from the list, and the xtd::collections::generic::list::capacity and xtd::collections::generic::list::count properties are displayed.
/// @include generic_list2.cpp
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>>
class list : public xtd::object, public xtd::collections::generic::ilist<type_t>, public xtd::iequatable<xtd::collections::generic::list<type_t, allocator_t>> {
class list : public xtd::object, public xtd::collections::generic::extensions::enumerable<list<type_t, allocator_t>, type_t>, public xtd::collections::generic::ilist<type_t>, public xtd::iequatable<xtd::collections::generic::list<type_t, allocator_t>> {
public:
/// @name Public Aliases

Expand Down

0 comments on commit edc98f1

Please sign in to comment.