MCPcopy Create free account
hub / github.com/boostorg/json / do_allocate

Method do_allocate

test/doc_storage_ptr.cpp:137–142  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

135{
136private:
137 void* do_allocate( std::size_t bytes, std::size_t align ) override
138 {
139 std::cout << "Allocating " << bytes << " bytes with alignment " << align << '\n';
140
141 return ::operator new( bytes );
142 }
143
144 void do_deallocate( void* ptr, std::size_t bytes, std::size_t align ) override
145 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected