◐ Shell
clean mode source ↗

std::priority_queue::operator= — cppreference.com

De cppreference.com

<metanoindex/>

<metanoindex/>

<tbody> </tbody>

priority_queue<T, Container>& operator=( const priority_queue<T,Container>& other );

(1)

priority_queue<T, Container>& operator=( priority_queue<T,Container>&& other );

(2) (depuis C++11)

Remplace le contenu de l'adaptateur de conteneur avec celles other .

Original:

Replaces the contents of the container adaptor with those of other.

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

1)

Copiez opérateur d'affectation. Remplace le contenu d'une copie du contenu de other. Appelle effectivement c = other.c;. (implicitement déclaré)

Original:

Copy assignment operator. Replaces the contents with a copy of the contents of other. Effectively calls c = other.c;. (implicitement déclaré)

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

2)

Déplacez opérateur d'affectation. Remplace le contenu avec ceux de other en utilisant la sémantique de déplacement. Appelle effectivement c = std::move(other.c); (implicitement déclaré)

Original:

Move assignment operator. Replaces the contents with those of other using move semantics. Effectively calls c = std::move(other.c); (implicitement déclaré)

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

Paramètres

other -

un autre adaptateur de réservoir à être utilisé en tant que source

Original:

another container adaptor to be used as source

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

Retourne la valeur

*this

Complexité

Équivalent à celui de {{{1}}} du conteneur sous-jacent .

Original:

Equivalent to that of {{{1}}} of the underlying container.

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

Voir aussi