GGUI::GGCapturedRef class

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's block.
GGCapturedRef(GGCapturedRef&& other) noexcept
Takes other's block.

Public functions

auto operator=(const GGCapturedRef& other) -> GGCapturedRef&
Share other's block, letting its own go.
auto operator=(GGCapturedRef&& other) -> GGCapturedRef& noexcept
Take other's block, letting its own go.
auto Get() const -> const GGCaptured*
The block; null if none.