المتغيرات
فضاءات التسمية
أفعال

std::{{{1}}}::operator=

من cppreference.com
{{{1}}}<T, Container>&
operator=( const {{{1}}}<T,Container>& other );
(1)
{{{1}}}<T, Container>&
operator=( {{{1}}}<T,Container>&& other );
(2) (since C++11)

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

1) Copy assignment operator. Replaces the contents with a copy of the contents of ‎other‎. Effectively calls c = other.c;. (معلن عنه ضمنيا)
2) Move assignment operator. Replaces the contents with those of ‎other‎ using move semantics. Effectively calls c = std::move(other.c); (معلن عنه ضمنيا)

محتويات

[تعديل] Parameters

other - another container adaptor to be used as source

[تعديل] Return value

*this

[تعديل] Complexity

Equivalent to that of operator= of the underlying container.

[تعديل] See also

قالب:dsc mem ctor