◐ Shell
clean mode source ↗

std::valarray::valarray — cppreference.com

De cppreference.com

<metanoindex/>

<tbody> </tbody>

valarray();

(1)

explicit valarray( size_t count );

(2)

valarray( const T& val, size_t count );

(3)

valarray( const T* vals, size_t count );

(4)

valarray( const valarray& other );

(5)

valarray( valarray&& other );

(6) (depuis 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) (depuis C++11)

Construit nouveau tableau numérique provenant de diverses sources .

Original:

Constructs new numeric array from various sources.

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

1)

Constructeur par défaut. Construit un tableau vide numérique .

Original:

Default constructor. Constructs an empty numeric array.

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

2)

Construit un tableau numérique avec des copies count d'éléments par défaut initialisés .

Original:

Constructs a numeric array with count copies of default-initialized elements.

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

3)

Construit un tableau numérique avec des copies de count val ou *val respectivement .

Original:

Constructs a numeric array with count copies of val or *val respectively.

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

4)

Construit un tableau numérique avec des copies des valeurs count à partir d'un tableau pointé par vals. Si ce tableau contient moins de valeurs count, le comportement est indéfini .

Original:

Constructs a numeric array with copies of count values from an array pointed to by vals. If this array contains less than count values, the behavior is undefined.

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

5)

Copiez constructeur. Construit le tableau numérique avec la copie du contenu de other .

Original:

Copy constructor. Constructs the numeric array with the copy of the contents of other.

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

6)

Déplacez constructeur. Construit le récipient avec le contenu de other utilisant une sémantique de déplacement .

Original:

Move constructor. Constructs the container with the contents of other using move semantics.

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

11)

Construit le tableau numérique avec le contenu de la liste d'initialisation il .

Original:

Constructs the numeric array with the contents of the initializer list il.

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Paramètres

count -

le nombre d'éléments de construction

Original:

the number of elements to construct

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

val -

la valeur d'initialisation avec les éléments

Original:

the value to initialize the elements with

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

other -

un autre tableau numérique à utiliser comme source pour initialiser le contenu

Original:

another numeric array to use as source to initialize the contents

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

il -

initialiseur pour initialiser la liste des éléments avec

Original:

initializer list to initialize the elements with

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Exceptions

1-5)

(Aucun)

Original:

(none)

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

7-11)

(Aucun)

Original:

(none)

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.