Converts from a pointer to U where U* converts implicitly to T*: adding cv-qualifiers, to void, or derived to base. Only the derived-to-base case at a non-zero offset decompresses; the others copy the offset.
Declared in <cptr/ptr.hpp>
template<
class U,
bool S>
requires std::is_convertible_v<U*, T*>
constexpr
explicit(Strict && !S)
basic_ptr(basic_ptr<U, Cage, S> const& other) noexcept;
Implicit, except from ptr to strict_ptr: a ptr may hold a pointer that was compressed implicitly, so turning it into a strict_ptr takes an explicit strict_ptr<T>(p). strict_ptr to ptr stays implicit.
| Name | Description |
|---|---|
| other | The object to copy construct from |