C++ envelope