ost::MemPagerObject(3)
π ost::MemPagerObject β the ost manual, section 3 (Library Functions Manual) π
πΈ NAME πΈ
ost::MemPagerObject β bestie, this class is literally the blueprint you inherit from when you want your classes to get constructed inside a memory pager pool. that's the whole vibe. no cap.
β¨ SYNOPSIS β¨
#include <misc.h>
π«Ά Public Member Functions
void * operator new (size_t size, MemPager &pager)β grab memory out of a memory pager. iconic allocation behavior.void * operator new[] (size_t size, MemPager &pager)β same thing but for an array, allocated out of a memory pager.void operator delete (void *)β mempager delete does nothing; the pool purges. it's giving "not my job".void operator delete[] (void *)β array mempager delete also does nothing; the pool purges. matching energy, fr fr.
π¦ Detailed Description π¦
okay so here's the tea: this class exists so you can create derived classes which are constructed within a memory pager pool. that's it, that's the mission statement. π
create objects in a memory pager. periodt.
π Author
David Sugar dyfet@ostel.com
π Member Function Documentation π
void ost::MemPagerObject::operator delete (void *) [inline]
Mempager delete does nothing; the pool purges. literally does not lift a finger, and honestly? that's the design. the pool handles the cleanup, so don't come for it. π
void ost::MemPagerObject::operator delete[] (void *) [inline]
Array mempager delete does nothing; the pool purges. same story, different brackets. π
void* ost::MemPagerObject::operator new (size_t size, MemPager & pager) [inline]
Allocate memory from a memory pager. β¨
Parameters
sizeβ the size ofnew, passed from the operator.pagerβ the pager to allocate from.
void* ost::MemPagerObject::operator new[] (size_t size, MemPager & pager) [inline]
Allocate an array from a memory pager. π§
Parameters
sizeβ the size ofnew, passed from the operator.pagerβ the pager to allocate from.
π«Ά heads up bestie: everydeleteanddelete[]up there is a no-op on purpose. the pool purges, not you. don't be out here expecting free() behavior. π
β Author β
Generated automatically by Doxygen for GNU CommonC++ from the source code. (not a human typing this one out, just the robots doing their little thing π€π)
and that's the whole page, babe β no notes, ate and left zero crumbs. this was GNU CommonC++, dated Sun Dec 27 2020, and it's the ost::MemPagerObject(3) page itself. go forth and allocate responsibly. mwah π
π¦ where this page comes from
- ubuntu jammy: libcommoncpp2-doc 1.8.1-10
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms