c++ get length of wide string code example Example: c++ string size // C++ string size str.length(); str.size(); // synonym