std::inout_ptr_t<Smart,Pointer,Args...>::inout_ptr_t
Since C++23
// 1)
explicit inout_ptr_t( Smart &sp, Args... args );
// 2)
inout_ptr_t( const inout_ptr_t& ) = delete;
Creates an inout_ptr_t. Adapts sp as if binds it to the Smart& member, captures every argument t in args... as if initializes the
corresponding member of type T in Args... with std::forward<T>(t), then initializes the stored Pointer with sp if Smart is a pointer type,
otherwise, initializes it with sp.get(). sp.release() may be called if Smart is not a pointer type, in which case it will not be called again within
the destructor.
Copy constructor is explicitly deleted. inout_ptr_t is neither copyable nor movable.
Parameters
sp - the object (typically a smart pointer) to adapt
args... - the arguments used for resetting to capture