cpp spline