#include <utility>
-#include "common/assert.h"
-
#include "optional-borrowed-object.hpp"
namespace bt2 {
ObjT operator*() const noexcept
{
- BT_ASSERT_DBG(_mObj);
return *_mObj;
}
BorrowedObjectProxy<ObjT> operator->() const noexcept
{
- BT_ASSERT_DBG(_mObj);
return _mObj.operator->();
}
*/
ObjT release() noexcept
{
- BT_ASSERT_DBG(_mObj);
-
const auto obj = *_mObj;
this->_reset();