strings Are Not Necessarily Null Terminated

Unlike pointer-based char * strings, string objects are not necessarily null terminated. [Note: The C++ standard document provides only a description of the capabilities of class string—implementation is platform dependent.]

Get C++11 for Programmers, Second Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.