Namespaces
Variants
Views
Actions

std::begin(std::valarray)

From cppreference.com
< cpp‎ | numeric‎ | valarray
Revision as of 15:26, 2 November 2012 by P12bot (Talk | contribs)

 
 
 
 

Template:ddcl list begin <tr class="t-dcl-sep"><td></td><td></td><td></td></tr>

<tr class="t-dcl ">

<td >
template< class T >
/*unspecified1*/ begin( valarray<T>& v );
</td>

<td > (1) </td> <td > (since C++11) </td> </tr> <tr class="t-dcl-sep"><td></td><td></td><td></td></tr>

<tr class="t-dcl ">

<td >
template< class T >
/*unspecified2*/ begin( const valarray<T>& v );
</td>

<td > (2) </td> <td > (since C++11) </td> </tr> Template:ddcl list end

The specialization of std::begin for valarray returns an iterator of unspecified type referring to the first element in the numeric array.

1) The return type meets the requirements of mutable RandomAccessIterator.
2) The return type meets the requirements of constant RandomAccessIterator.

Contents

Parameters

v - a numeric array

Return value

Iterator to the first value in the numeric array.

Exceptions

(none)

Example

See also

Template:cpp/numeric/valarray/dcl list end2