template<class type_t,
xtd::size len>
class xtd::fixed_array< type_t, len >
Represents a fixed array class.
- Header
#include <xtd/fixed_array>
- Namespace
- xtd
- Library
- xtd.core
- Examples
- format_sequence_containers.cpp.
|
virtual reference | back () |
| Returns a reference to the last element in the container.
|
|
virtual const_reference | back () const |
| Returns a reference to the last element in the container.
|
|
const_iterator | begin () const noexcept |
| Returns an iterator to the first element of the enumarable.
|
|
iterator | begin () noexcept |
| Returns an iterator to the first element of the enumarable.
|
|
const_iterator | cbegin () const noexcept |
| Returns an iterator to the first element of the enumarable.
|
|
const_iterator | cend () const noexcept |
| Returns an iterator to the element following the last element of the enumarable.
|
|
size_type | count () const noexcept |
| Gets the number of elements contained in the xtd::collections::generic::list <type_t>.
|
|
const_pointer | data () const noexcept |
| Returns pointer to the underlying array serving as element storage.
|
|
pointer | data () noexcept |
| Returns pointer to the underlying array serving as element storage.
|
|
virtual bool | empty () const noexcept |
| Checks if the container has no elements, i.e. whether xtd::array::begin() == xtd::array::end().
|
|
const_iterator | end () const noexcept |
| Returns an iterator to the element following the last element of the enumarable.
|
|
iterator | end () noexcept |
| Returns an iterator to the element following the last element of the enumarable.
|
|
virtual reference | front () |
| Returns a reference to the first element in the container.
|
|
virtual const_reference | front () const |
| Returns a reference to the first element in the container.
|
|
virtual const_base_type | items () const noexcept |
| Returns the underlying base type items.
|
|
virtual base_type | items () noexcept |
| Returns the underlying base type items.
|
|
virtual size_type | length () const noexcept |
| Gets a size that represents the total number of elements in all the dimensions of the array.
|
|
xtd::size | size () const noexcept |
| Returns the number of elements in the container, i.e. std::distance(xtd::array::begin(), xtd::array::end()).
|
|
|
| object ()=default |
| Create a new instance of the ultimate base class object.
|
|
virtual bool | equals (const object &obj) const noexcept |
| Determines whether the specified object is equal to the current object.
|
|
virtual xtd::size | get_hash_code () const noexcept |
| Serves as a hash function for a particular type.
|
|
virtual type_object | get_type () const noexcept |
| Gets the type of the current instance.
|
|
template<class object_t> |
xtd::unique_ptr_object< object_t > | memberwise_clone () const |
| Creates a shallow copy of the current object.
|
|
template<class object_a_t, class object_b_t> |
static bool | equals (const object_a_t &object_a, const object_b_t &object_b) noexcept |
| Determines whether the specified object instances are considered equal.
|
|
template<class object_a_t, class object_b_t> |
static bool | reference_equals (const object_a_t &object_a, const object_b_t &object_b) noexcept |
| Determines whether the specified object instances are the same instance.
|
|
◆ value_type
Represents the array value type.
◆ base_type
Represents the array base type.
◆ const_base_type
Represents the const array base type.
◆ reference
Represents the reference of array value type.
◆ const_reference
Represents the const reference of array value type.
◆ iterator
Represents the iterator of array value type.
◆ const_iterator
Represents the const iterator of array value type.
◆ pointer
Represents the pointer of array value type.
◆ const_pointer
Represents the const pointer of array value type.
◆ size_type
Represents the array size type (usually xtd::size).
◆ difference_type
Represents the array difference type (usually xtd::ptrdiff).
◆ reverse_iterator
Represents the reverse iterator of array value type.
◆ const_reverse_iterator
Represents the const reverse iterator of array value type.
◆ back() [1/2]
Returns a reference to the last element in the container.
- Returns
- Reference to the first element.
◆ back() [2/2]
Returns a reference to the last element in the container.
- Returns
- Reference to the first element.
◆ begin() [1/2]
Returns an iterator to the first element of the enumarable.
- Returns
- Iterator to the first element.
◆ begin() [2/2]
Returns an iterator to the first element of the enumarable.
- Returns
- Iterator to the first element.
◆ cbegin()
Returns an iterator to the first element of the enumarable.
- Returns
- Iterator to the first element.
◆ cend()
Returns an iterator to the element following the last element of the enumarable.
- Returns
- Iterator to the element following the last element.
◆ count()
◆ data() [1/2]
Returns pointer to the underlying array serving as element storage.
- Returns
- Pointer to the underlying element storage. For non-empty containers, the returned pointer compares equal to the address of the first element.
◆ data() [2/2]
Returns pointer to the underlying array serving as element storage.
- Returns
- Pointer to the underlying element storage. For non-empty containers, the returned pointer compares equal to the address of the first element.
◆ empty()
◆ end() [1/2]
Returns an iterator to the element following the last element of the enumarable.
- Returns
- Iterator to the element following the last element.
◆ end() [2/2]
Returns an iterator to the element following the last element of the enumarable.
- Returns
- Iterator to the element following the last element.
◆ front() [1/2]
Returns a reference to the first element in the container.
- Returns
- Reference to the first element.
◆ front() [2/2]
Returns a reference to the first element in the container.
- Returns
- Reference to the first element.
◆ items() [1/2]
Returns the underlying base type items.
- Returns
- The underlying base type items.
◆ items() [2/2]
Returns the underlying base type items.
- Returns
- The underlying base type items.
◆ length()
Gets a size that represents the total number of elements in all the dimensions of the array.
- Returns
- A size that represents the total number of elements in all the dimensions of the array; zero if there are no elements in the array.
◆ size()
◆ at() [1/2]
Returns a reference to the element at specified location pos, with bounds checking.
- Parameters
-
index | The position of the element to return. |
- Returns
- Reference to the requested element.
- Exceptions
-
std::out_of_range | If pos is not within the range of the container. |
◆ at() [2/2]
Returns a reference to the element at specified location pos, with bounds checking.
- Parameters
-
index | The position of the element to return. |
- Returns
- Reference to the requested element.
- Exceptions
-
std::out_of_range | If pos is not within the range of the container. |
◆ clear()
Clears the contents of this xtd::span <type> object.
◆ fill()
Fills the elements of this span with a specified value.
- Parameters
-
value | The value to assign to each element of the span. |
◆ to_array()
◆ to_string()
|
inlineoverridevirtualnoexcept |
Returns a xtd::string that represents the current object.
- Returns
- A string that represents the current object.
Reimplemented from xtd::object.
◆ operator[]() [1/2]
Returns a reference to the element at specified location index.
- Parameters
-
index | The position of the element to return. |
- Returns
- Reference to the requested element.
- Exceptions
-
std::out_of_range | If `index` is not within the range of the container. |
◆ operator[]() [2/2]
Returns a reference to the element at specified location index.
- Parameters
-
index | The position of the element to return. |
- Returns
- Reference to the requested element.
The documentation for this class was generated from the following file: