Home > Articles > Programming > C/C++

Item 16: Know how to pass vector and string data to legacy APIs.

  • Print
  • + Share This
  • 💬 Discuss
From the author of
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.
View this Item in PDF format.
  • + Share This
  • 🔖 Save To Your Account

Discussions

comments powered by Disqus