Function set_memory_resource

Synopsis

#include <src/c4/yml/common.hpp>

void set_memory_resource(MemoryResource *r)

Description

set the global memory resource

Source

Lines 135-138 in src/c4/yml/common.cpp. Line 204 in src/c4/yml/common.hpp.

void set_memory_resource(MemoryResource* r)
{
    s_memory_resource = r ? r : &s_default_memory_resource;
}





Add Discussion as Guest

Log in