ΒΆtemplate <class T>
inline constexpr T take_and_destruct(
::sus::marker::UnsafeFnMarker,
T& t) noexcept
template <class T>
inline constexpr T take_and_destruct(
::sus::marker::UnsafeFnMarker,
T& t) noexcept
Description
Moves 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:52
Templates
- T