¡@

Home 

c++ Programming Glossary: registrar

Factory pattern allocating memory at compile time, and how to print compile time info

http://stackoverflow.com/questions/10676498/factory-pattern-allocating-memory-at-compile-time-and-how-to-print-compile-time

static Base instantiate std string const name struct Registrar Registrar std string name Base base_creator_fn func Base.cpp.. Base instantiate std string const name struct Registrar Registrar std string name Base base_creator_fn func Base.cpp #include.. .find name return it Base registry .end nullptr it second Registrar Registrar std string name Base base_creator_fn func Base registry..