29
Numerics library
[numerics]
29.6
Numeric arrays
[numarray]
29.6.10
Range access
[valarray.range]
1
#
The
iterator
type is a type that meets the requirements of a mutable
Cpp17RandomAccessIterator
(
[random.
access.
iterators]
) and models
contiguous_
iterator
(
[iterator.
concept.
contiguous]
)
.
Its
value_
type
is the template parameter
T
and its
reference
type is
T
&
.
The
const_
iterator
type meets the requirements of a constant
Cpp17RandomAccessIterator
and models
contiguous_
iterator
.
Its
value_
type
is the template parameter
T
and its
reference
type is
const
T
&
.
2
#
The iterators returned by
begin
and
end
for an array are guaranteed to be valid until the member function
resize(size_
t, T)
is called for that array or until the lifetime of that array ends, whichever happens first
.
🔗
iterator begin
(
)
; const_iterator begin
(
)
const
;
3
#
Returns
: An iterator referencing the first value in the array
.
🔗
iterator end
(
)
; const_iterator end
(
)
const
;
4
#
Returns
: An iterator referencing one past the last value in the array
.