add ratio to null c++ stl