C++ LTCI model