ΒΆtemplate <class T>
inline constexpr T take_copy_and_destruct(
    ::sus::marker::UnsafeFnMarker,
    const T& t) noexcept

Description

Copies from `t` and destroys the object at `t`. Returns the old value of `t`. Safety This does *not* re-construct the object pointed to by `t`. It must not be used (or destructed again) afterward.

Declared at: sus/mem/take.h:71

Templates

T

Parameters

::sus::marker::UnsafeFnMarker
const T& t