Explicit casts that static_cast allows, such as base to derived or void* to T*.
Declared in <cptr/ptr.hpp>
template<class U>
requires (!std::is_convertible_v<U*, T*> &&
requires(U* u) { static_cast<T*>(u); })
explicit
basic_ptr(U* p) noexcept;
| Name | Description |
|---|---|
| p | The object to construct from |