Libraries should permit custom allocators

Some C and C++ libraries permit the use of custom allocators, which are registered through some kind of external API.  For example, the following libraries used by Firefox provide this facility. FreeType provides this via the FT_MemoryRec_ argument of the FT_New_Library() function. ICU provides this via the u_setMemoryFunctions() function. SQLite provides this via the sqlite3_config() … Continue reading Libraries should permit custom allocators