cpplibrary writing