Struct MemoryResourceStack
Defined in File rapidyaml-0.5.0.hpp
Inheritance Relationships
Base Type
public c4::detail::_MemoryResourceSingleChunk(Struct _MemoryResourceSingleChunk)
Struct Documentation
-
struct MemoryResourceStack : public c4::detail::_MemoryResourceSingleChunk
provides a stack-type malloc-based memory resource.
Public Functions
-
C4_NO_COPY_OR_MOVE(MemoryResourceStack)
-
inline _MemoryResourceSingleChunk(MemoryResource *impl = nullptr)
-
inline _MemoryResourceSingleChunk(size_t sz, MemoryResource *impl = nullptr)
initialize with owned memory, allocated from the given (or the global) memory resource
-
inline _MemoryResourceSingleChunk(void *mem, size_t sz)
initialize with borrowed memory
-
C4_NO_COPY_OR_MOVE(MemoryResourceStack)