You can hide _referent_map inside this function using static variable, which will be initialized once (it's standard C/C++ feature):

static _referent_map = new ReferentMap();