Code Sample: Convert Your Transient C++ Map Application to Use...
… Insert New Element We’ll first insert a new value into the transient implementation tree map: template int insert new key type key, const Args &... args { return insert key, new T args... ; } Then we modify the implementation to store the data in persistent memory: template int insert new key type … …