d2c_openarray |
Top Previous Next |
Pretranslated C++ code > Delphi RTL/VCL > C++ code for other compilers > d2c_openarray d2c_openarray contains Delphi2Cpp II helper code to simulate Delphi open arrays. For constant open arrays simply std::vectors are used in the C++ translation. But there case, where open arrays are passed as var-parameters. Strings, SmallStrings, and fixed arrays con be passed to such parameters as well as dynamic arrays. For that case Delphi2Cpp II uses a special template type OpenArrayRef, which is defined in d2c_openarray.
template <class T> class OpenArrayRef { public: OpenArrayRef(std::vector<T>& v); OpenArrayRef(std::basic_string<T>& s);
...
};
|
This page belongs to the DelphiXE2Cpp11 Documentation |
DelphiXE2Cpp11 home Content |