valarray(); | (1) | |
explicit valarray( std::size_t count ); | (2) | |
valarray( const T& val, std::size_t count ); | (3) | |
valarray( const T* vals, std::size_t count ); | (4) | |
valarray( const valarray& other ); | (5) | |
valarray( valarray&& other ); | (6) | (since C++11) |
valarray( const std::slice_array<T>& ); | (7) | |
valarray( const std::gslice_array<T>& ); | (8) | |
valarray( const std::mask_array<T>& ); | (9) | |
valarray( const std::indirect_array<T>& ); | (10) | |
valarray( std::initializer_list<T> il ); | (11) | (since C++11) |
Constructs new numeric array from various sources.
count
copies of value-initialized elements.count
copies of val
.count
values from an array pointed to by vals
. If this array contains less than count
values, the behavior is undefined.other
.other
using move semantics.il
. count | - | the number of elements to construct |
val | - | the value to initialize the elements with |
vals | - | pointer to a C array to use as source to initialize the contents |
other | - | another numeric array to use as source to initialize the contents |
il | - | initializer list to initialize the elements with |
noexcept
specification: noexcept
© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
http://en.cppreference.com/w/cpp/numeric/valarray/valarray