std::experimental::propagate_const<T>::operator=
From cppreference.com
< cpp | experimental | propagate const
C++
Feature test macros (C++20)
Concepts library (C++20)
Metaprogramming library (C++11)
Ranges library (C++20)
Filesystem library (C++17)
Concurrency support library (C++11)
Execution control library (C++26)
Experimental
Filesystem library (filesystem TS)
Library fundamentals (library fundamentals TS)
Library fundamentals 2 (library fundamentals TS v2)
Library fundamentals 3 (library fundamentals TS v3)
Extensions for parallelism (parallelism TS)
Extensions for parallelism 2 (parallelism TS v2)
Extensions for concurrency (concurrency TS)
Extensions for concurrency 2 (concurrency TS v2)
Concepts (concepts TS)
Ranges (ranges TS)
Reflection (reflection TS)
Mathematical special functions (special functions TR)
std::experimental::propagate_const
Member functions
propagate_const::operator=
Observers
Non-member functions
Helper classes
constexpr propagate_const& operator=( propagate_const&& p ) = default;
(1)
(library fundamentals TS v2)
template< class U >
constexpr propagate_const& operator=( propagate_const<U>&& pu );
(2)
(library fundamentals TS v2)
constexpr propagate_const& operator=( propagate_const<U>&& pu );
template< class U >
constexpr propagate_const& operator=( U&& u );
(3)
(library fundamentals TS v2)
constexpr propagate_const& operator=( U&& u );
propagate_const& operator=( const propagate_const& ) = delete;
(4)
(library fundamentals TS v2)
Let t_
designate the private data member that is the wrapped pointer-like object.
1) Explicitly defaulted move assignment operator that move assigns this->t_ from p.t_.
2) Assigns std::move(pu.t_) to this->t_.
This overload participates in overload resolution only if
This overload participates in overload resolution only if
U
is implicitly convertible to T
.3) Assigns std::forward <U>(u) to this->t_.
This overload participates in overload resolution only if
This overload participates in overload resolution only if
U
is implicitly convertible to T
and std::decay_t <U> is not a specialization of propagate_const
.4) Copy assignment operator is explicitly deleted.
propagate_const
is non-copyable.[edit] Parameters
p
-
another
propagate_const
object to move from
pu
-
another
propagate_const
object of a different specialization to move from
u
-
another object to assign to the contained pointer
[edit] Return value
*this.