GGCapturedRef class
#include <GGUI/Public/UITypes.h>
Ref-counted pointer to a GGCaptured.
Constructors, destructors, conversion operators
- GGCapturedRef() defaulted
- None.
- GGCapturedRef(GGCaptured* made) explicit
- Adopts the reference a new block starts with.
- ~GGCapturedRef()
- Lets the block go.
- GGCapturedRef(const GGCapturedRef& other)
- Shares
other'sblock. - GGCapturedRef(GGCapturedRef&& other) noexcept
- Takes
other'sblock.
Public functions
- auto operator=(const GGCapturedRef& other) -> GGCapturedRef&
- Share
other'sblock, letting its own go. - auto operator=(GGCapturedRef&& other) -> GGCapturedRef& noexcept
- Take
other'sblock, letting its own go. - auto Get() const -> const GGCaptured*
- The block; null if none.