cptr::basic_ptr::operator=

Null. A template, so that a literal 0 picks the T* overload above (or, for strict_ptr, the null-literal constructor) instead of being ambiguous.

Synopsis

Declared in <cptr/ptr.hpp>

template<class N>
requires std::is_null_pointer_v<N>
constexpr
basic_ptr&
operator=(N value) noexcept;

Return Value

Reference to the current object

Parameters

NameDescription
valueThe object to assign from