|
FE 0.15.0
A C++23 toolkit for writing compiler/interpreter frontends.
|
A non-owning pointer into an Arena. More...
#include <fe/arena.h>
Public Member Functions | |
| constexpr | Ref () noexcept=default |
| constexpr | Ref (std::nullptr_t) noexcept |
| constexpr | Ref (T *ptr) noexcept |
| template<class U> requires std::convertible_to<U*, T*> | |
| constexpr | Ref (Ref< U > ref) noexcept |
| constexpr T * | get () const noexcept |
| constexpr T * | operator-> () const noexcept |
| constexpr T & | operator* () const noexcept |
| constexpr | operator bool () const noexcept |
| constexpr bool | operator== (const Ref &) const noexcept=default |
A non-owning pointer into an Arena.
The Arena outlives it and releases everything at once, so nothing is ever destroyed through it - unlike Arena::Ptr, which at least runs the destructor.
|
constexprdefaultnoexcept |
Referenced by operator==(), Ref(), Ref(), and fe::Arena::ref().
|
inlineconstexprnoexcept |
|
inlineexplicitconstexprnoexcept |
|
inlineconstexprnoexcept |
Definition at line 101 of file arena.h.
References Ref(), and fe::Arena::ref().
|
inlineconstexprnoexcept |
|
inlineexplicitconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
constexprdefaultnoexcept |
References Ref().