nanomart cpp example