Skip to content

Glossary: C++ Basics

std::string

Also written: string, std::string::npos, npos

The type that holds text in a variable, from `<string>`. `find` returns `std::string::npos` ("no position") when text isn't found.

Where the book teaches it

Related terms

String literalIndexMember function