5#if !defined(__XTD_ARRAY_INTERNAL__)
6#error "Do not include this file: Internal use only. Include <xtd/array> or <xtd/array.hpp> instead."
39 template<
typename type_t,
typename allocator_t>
84 array(
const array&
array)
requires std::copy_constructible<type_t> : basic_array<type_t, allocator_t>(
array) {}
144 template<
typename input_iterator_t>
145 array(input_iterator_t
first, input_iterator_t
last)
requires std::copy_constructible<type_t> : basic_array<type_t, allocator_t>(
first,
last) {}
148 array(std::vector<std::vector<std::vector<type_t>>>
items)
requires std::copy_constructible<type_t> : basic_array<type_t, allocator_t>(
items) {}
151 array(std::initializer_list<std::initializer_list<std::initializer_list<type_t>>>
items)
requires std::copy_constructible<type_t> : basic_array<type_t, allocator_t>(
items) {}
162 [[nodiscard]]
auto rank() const noexcept ->
xtd::
usize override {
return 3;}
203 using
xtd::basic_array<type_t, allocator_t>::operator();
228#if __cpp_multidimensional_subscript
array(const array< xtd::usize, 1 > &lengths, const value_type &value)
Initializes a new instance of the array class with lengths for each rank specified.
Definition array_3.hpp:126
auto get_value(size_type index1, size_type index2, size_type index3) const -> const value_type &
Gets the value at the specified position in the one-dimensional Array. The index is specified as a 32...
Definition array_3.hpp:175
typename xtd::basic_array< type_t, allocator_t >::reference reference
Represents the reference of array value type.
Definition array_3.hpp:56
typename xtd::basic_array< type_t, allocator_t >::const_reference const_reference
Represents the const reference of array value type.
Definition array_3.hpp:58
typename xtd::basic_array< type_t, allocator_t >::const_reverse_iterator const_reverse_iterator
Represents the const reverse iterator of array value type.
Definition array_3.hpp:70
typename xtd::basic_array< type_t, allocator_t >::iterator iterator
Represents the iterator of array value type.
Definition array_3.hpp:64
typename xtd::basic_array< type_t, allocator_t >::const_pointer const_pointer
Represents the const pointer of array value type.
Definition array_3.hpp:62
array()=default
Initializes a new instance of the Array class that is empty.
typename xtd::basic_array< type_t, allocator_t >::difference_type difference_type
Represents the array difference type (usually xtd::ptrdiff).
Definition array_3.hpp:54
array(std::initializer_list< std::initializer_list< std::initializer_list< type_t > > > items)
Constructs the container with the contents of the specified initializer list.
Definition array_3.hpp:151
array(std::vector< std::vector< std::vector< type_t > > > items)
Constructs the container with the contents of the specified initializer list.
Definition array_3.hpp:148
array(const xtd::collections::generic::ienumerable< type_t > &enumerable)
Initializes a new instance of the array and copy array array specified.
Definition array_3.hpp:133
typename xtd::basic_array< type_t, allocator_t >::const_iterator const_iterator
Represents the const iterator of array value type.
Definition array_3.hpp:66
array(input_iterator_t first, input_iterator_t last)
Constructs the container with the contents of the range [first, last).
Definition array_3.hpp:145
typename xtd::basic_array< type_t, allocator_t >::allocator_type allocator_type
Represents the array allocator type.
Definition array_3.hpp:48
array(base_type &&array)
Move constructor with specified base type array.
Definition array_3.hpp:93
array(const array &array)
Copy constructor with specified array.
Definition array_3.hpp:84
auto to_string() const noexcept -> xtd::string override
Returns a xtd::string that represents the current object.
typename xtd::basic_array< type_t, allocator_t >::reverse_iterator reverse_iterator
Represents the reverse iterator of array value type.
Definition array_3.hpp:68
array(size_type length1, size_type length2, size_type length3, const value_type &value)
Initializes a new instance of the array class with lengths for each rank specified and default value.
Definition array_3.hpp:112
auto set_value(const value_type &value, size_type index1, size_type index2, size_type index3) -> void
Sets a value to the element at the specified position in the one-dimensional Array....
Definition array_3.hpp:184
typename xtd::basic_array< type_t, allocator_t >::base_type base_type
Represents the array base type.
Definition array_3.hpp:50
array(size_type length1, size_type length2, size_type length3)
Initializes a new instance of the array class with lengths for each rank specified.
Definition array_3.hpp:102
type_t value_type
Represents the array value type.
Definition array_3.hpp:46
array(const xtd::collections::generic::ilist< type_t > &list)
Initializes a new instance of the array and copy array array specified.
Definition array_3.hpp:140
auto operator()(size_type index1, size_type index2, size_type index3) const -> const value_type &
Gets the value at the specified position in the one-dimensional Array. The index is specified as a 32...
Definition array_3.hpp:226
typename xtd::basic_array< type_t, allocator_t >::size_type size_type
Represents the array size type (usually xtd::usize).
Definition array_3.hpp:52
array(array &&array)
Move constructor with specified array.
Definition array_3.hpp:87
array(const base_type &array)
Copy constructor with specified base type array.
Definition array_3.hpp:90
auto rank() const noexcept -> xtd::usize override
Gets the rank (number of dimensions) of the array.
Definition array_3.hpp:162
array(const array< xtd::usize, 1 > &lengths)
Initializes a new instance of the array class with lengths for each rank specified.
Definition array_3.hpp:119
typename xtd::basic_array< type_t, allocator_t >::pointer pointer
Represents the pointer of array value type.
Definition array_3.hpp:60
typename xtd::basic_array< type_t, allocator_t >::size_type size_type
Represents the array size type (usually xtd::usize).
Definition array.hpp:76
type_t value_type
Represents the array value type.
Definition array.hpp:70
Base object that represent array.
Definition basic_array.hpp:27
const value_type & const_reference
Represents the const reference of array value type.
Definition basic_array.hpp:45
xtd::collections::generic::helpers::allocator< value_type > allocator_type
Represents the array allocator type.
Definition basic_array.hpp:35
auto get_value(const xtd::array< size_type > &indexes) const -> const value_type &
typename xtd::collections::generic::ienumerable< type_t >::const_iterator const_iterator
Represents the const iterator of array value type.
Definition basic_array.hpp:53
xtd::ptrdiff difference_type
Represents the array difference type (usually xtd::ptrdiff).
Definition basic_array.hpp:41
xtd::usize size_type
Represents the array size type (usually xtd::usize).
Definition basic_array.hpp:39
virtual auto items() const noexcept -> const base_type &
Definition basic_array.hpp:111
const value_type * const_pointer
Represents the const pointer of array value type.
Definition basic_array.hpp:49
typename xtd::collections::generic::helpers::raw_array< value_type >::reverse_iterator reverse_iterator
Represents the reverse iterator of array value type.
Definition basic_array.hpp:55
value_type * pointer
Represents the pointer of array value type.
Definition basic_array.hpp:47
value_type & reference
Represents the reference of array value type.
Definition basic_array.hpp:43
auto operator()(const xtd::array< size_type > &indexes) -> type_t &
auto set_value(const type_t &value, const xtd::array< size_type > &indexes) -> void
Definition basic_array.hpp:379
typename xtd::collections::generic::helpers::raw_array< value_type, allocator_type >::base_type base_type
Represents the array base type.
Definition basic_array.hpp:37
auto operator[](size_type index) const -> const_reference override
Definition basic_array.hpp:461
typename xtd::collections::generic::helpers::raw_array< value_type >::const_reverse_iterator const_reverse_iterator
Represents the const reverse iterator of array value type.
Definition basic_array.hpp:57
typename xtd::collections::generic::ienumerable< type_t >::iterator iterator
Represents the iterator of array value type.
Definition basic_array.hpp:51
typename xtd::linq::enumerable::list< type_t > list
Definition enumerable.hpp:47
Exposes the enumerator, which supports a simple iteration over a collection of a specified type.
Definition ienumerable.hpp:40
Represents a collection of objects that can be individually accessed by index.
Definition ilist.hpp:43
std::size_t usize
Represents an unsigned size of any object in bytes.
Definition usize.hpp:22
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition abstract_object.hpp:8
auto first() const -> read_only_span< type_t, count >
Obtains a subspan consisting of the first count elements of the sequence.
Definition read_only_span.hpp:249
xtd::usize size_type
Represents the read_only_span size type (usually xtd::usize).
Definition read_only_span.hpp:59
auto last() const -> read_only_span< type_t, count >
Obtains a subspan consisting of the last N elements of the sequence.
Definition read_only_span.hpp:274
Represents a value_type struct.
Definition value_type.hpp:34