Item 16: Know how to pass vector and string data to legacy APIs.
Page 1 of 1
Some legacy C APIs traffic in arrays and char* pointers instead of vector and string objects. Such APIs will exist for a long time, so we must make peace with them if we are to use the STL effectively. Fortunately, it's easy. The following is an excerpt from Scott Meyers' book, Effective STL: 50 Specific Ways to Improve Your Use of the Standard Template Library.
Like this article? We recommend
View this Item in PDF format.
Page 1 of 1