Files
2025-10-25 03:02:53 +03:00

2.6 KiB

[valarray.range]

29 Numerics library [numerics]

29.6 Numeric arrays [numarray]

29.6.10 valarray range access [valarray.range]

1

#

In the begin and end function templates that follow, unspecified1 is a type that meets the requirements of a mutableCpp17RandomAccessIterator ([random.access.iterators]) and models contiguous_iterator ([iterator.concept.contiguous]), whose value_type is the template parameter T and whose reference type is T&.

unspecified2 is a type that meets the requirements of a constantCpp17RandomAccessIterator and models contiguous_iterator, whose value_type is the template parameter T and whose reference type is const T&.

2

#

The iterators returned by begin and end for an array are guaranteed to be valid until the member functionresize(size_t, T) is called for that array or until the lifetime of that array ends, whichever happens first.

🔗

template<class T> unspecified1 begin(valarray<T>& v); template<class T> unspecified2 begin(const valarray<T>& v);

3

#

Returns: An iterator referencing the first value in the array.

🔗

template<class T> unspecified1 end(valarray<T>& v); template<class T> unspecified2 end(const valarray<T>& v);

4

#

Returns: An iterator referencing one past the last value in the array.