cxx initializer generator accessible from api