<string>
Home Up

 

Same level pages:
<algorithms>
<cassert>
<cerrno>
<cctype>
<cfloat>
<climits>
<clocale>
<cmath>
<complex>
<csetjmp>
<csignal>
<cstdarg>
<cstddef>
<cstdio>
<cstdlib>
<cstring>
<ctime>
<cwchar>
<cwctype>
<exception>
<fstream>
<functional>
<iomanip>
<ios>
<iostream>
<istream>
<iterator>
<limits>
<locale>
<memory>
<new>
<numeric>
<ostream>
<sstream>
<stdexcept>
<streambuf>
<string>
<typeinfo>
<utility>
<valarray>

Parent level pages:
STL
FAQs
Headers
Libraries

<string> is part of the Standard C++ string handling library.

Structs/Classes

template<class charT> struct string_char_traits;
template<class charT, class traits = string_char_traits<charT>, class Allocator = allocator> class basic_string;
struct string_char_traits<char>;
struct string_char_traits<wchar_t>;

Typedefs

typedef basic_string<char> string;
typedef basic_string<wchar_t> wstring;

Functions 

operator+

basic_string<> operator+ (const basic_string<>& lhs, const basic_string<>& rhs);
basic_string<> operator+ (const charT* lhs, const basic_string<>& rhs);
basic_string<> operator+ (charT lhs, const basic_string<>& rhs);
basic_string<> operator+ (const basic_string<>& lhs, const charT* rhs);
basic_string<> operator+ (const basic_string<>& lhs, charT rhs);

operator==

bool operator== (const basic_string<>& lhs, const basic_string<>& rhs);
bool operator== (const charT* lhs, const basic_string<>& rhs);
bool operator== (const basic_string<>& lhs, const charT* rhs);

operator!=

bool operator!= (const basic_string<>& lhs, const basic_string<>& rhs);
bool operator!= (const charT* lhs, const basic_string<>& rhs);
bool operator!= (const basic_string<>& lhs, const charT* rhs);

operator<

bool operator< (const basic_string<>& lhs, const basic_string<>& rhs);
bool operator< (const basic_string<>& lhs, const charT* rhs);
bool operator< (const charT* lhs, const basic_string<>& rhs);

operator>

bool operator> (const basic_string<>& lhs, const basic_string<>& rhs);
bool operator> (const basic_string<>& lhs, const charT* rhs);
bool operator> (const charT* lhs, const basic_string<>& rhs);

operator<=

bool operator<=(const basic_string<>& lhs, const basic_string<>& rhs);
bool operator<= (const basic_string<>& lhs, const charT* rhs);
bool operator<= (const charT* lhs, const basic_string<>& rhs);

operator>=

bool operator>= (const basic_string<>& lhs, const basic_string<>& rhs);
bool operator>= (const basic_string<>& lhs, const charT* rhs);
bool operator>= (const charT* lhs, const basic_string<>& rhs);

operator>>

basic_istream<charT>& operator>> (basic_istream<charT>& is, basic_string<>& str);

operator<<

basic_ostream<charT>& operator<< (basic_ostream<charT>& os, const basic_string<>& str);

getline function

basic_istream<charT,IS_traits>& getline (basic_istream<charT,IS_traits>& is, basic_string<>& str, charT delim = IS_traits::newline());
 
ŠPaul Buis & Ball State University Author: Paul Buis (peb@bsu.edu) Last Modified:10/30/00 12:15 PM

NOTICE: The information presented on this page represents the personal views, ideas, and opinions of the author. This is not an official Ball State University web page. Links contained at this web site to other organizations, are presented as a service and neither constitute nor imply university endorsement or warranty.