Function operator=

Summary

#include <include/EASTL/any.h>

(1) template <class ValueType>
    any & operator=(ValueType &&value)

(2) any & operator=(const any &other)

(3) any & operator=(any &&other) EA_NOEXCEPT

Function overload

Synopsis

#include <include/EASTL/any.h>

template <class ValueType>
any & operator=(ValueType &&value)

Description

20.7.3.2, assignments

Source

Lines 436-442 in include/EASTL/any.h.

template <class ValueType>
any& operator=(ValueType&& value)
{
    static_assert(is_copy_constructible<decay_t<ValueType>>::value, "ValueType must be copy-constructible");
    any(eastl::forward<ValueType>(value)).swap(*this);
    return *this;
}

Synopsis

#include <include/EASTL/any.h>

any & operator=(const any &other)

Description

No description yet.

Source

Lines 444-448 in include/EASTL/any.h.

any& operator=(const any& other) 
{ 
    any(other).swap(*this);
    return *this; 
}

Synopsis

#include <include/EASTL/any.h>

any & operator=(any &&other) EA_NOEXCEPT

Description

No description yet.

Source

Lines 450-454 in include/EASTL/any.h.

any& operator=(any&& other) EA_NOEXCEPT 
{ 
    any(eastl::move(other)).swap(*this);
    return *this; 
}





Add Discussion as Guest

Log in