cpp realization