Previous fileTop of DocumentContentsIndex pageNext file
Apache C++ Standard Library Reference Guide

<string>

Library: Strings


Header

Local Index

No Entries

Summary

The header <string> represents the Strings library of the Standard C++ Library. It defines the following entities:

Synopsis

namespace std {
 template<class charT>
 struct char_traits;
 template <> struct char_traits<char>;
 template <> struct char_traits<wchar_t>;
 template<class charT, class traits = char_traits<charT>, 
 class Allocator = allocator<charT> >
 class basic_string;
 template<class charT, class traits, class Allocator>
 basic_string<charT, traits, Allocator>
 operator+(const basic_string<charT, traits, Allocator>&, 
 const basic_string<charT, traits, Allocator>&);
 
 template<class charT, class traits, class Allocator>
 basic_string<charT, traits, Allocator>
 operator+(const charT*, 
 const basic_string<charT, traits, Allocator>&);
 
 template<class charT, class traits, class Allocator>
 basic_string<charT, traits, Allocator>
 operator+(charT, const basic_string<charT, 
 traits, Allocator>&);
 
 template<class charT, class traits, class Allocator>
 basic_string<charT, traits, Allocator>
 operator+(const basic_string<charT, traits, Allocator>&, 
 const charT*);
 
 template<class charT, class traits, class Allocator>
 basic_string<charT, traits, Allocator>
 operator+(const basic_string<charT, traits, 
 Allocator>&, charT);
 template<class charT, class traits, class Allocator>
 bool operator==(const basic_string<charT, traits,
 Allocator>&,
 const basic_string<charT, traits,
 Allocator>&);
 
 template<class charT, class traits, class Allocator>
 bool operator==(const charT*,
 const basic_string<charT, traits,
 Allocator>&);
 
 template<class charT, class traits, class Allocator>
 bool operator==(const basic_string<charT, traits,
 Allocator>&,
 const charT*);
 
 template<class charT, class traits, class Allocator>
 bool operator!=(const basic_string<charT, traits,
 Allocator>&,
 const basic_string<charT, traits,
 Allocator>&);
 
 template<class charT, class traits, class Allocator>
 bool operator!=(const charT*, const basic_string<charT,
 traits, Allocator>&);
 
 template<class charT, class traits, class Allocator>
 bool operator!=(const basic_string<charT, traits,
 Allocator>&, 
 const charT*);
 template<class charT, class traits, class Allocator>
 bool operator<(const basic_string<charT, traits,
 Allocator>&, 
 const basic_string<charT, traits,
 Allocator>&);
 
 template<class charT, class traits, class Allocator>
 bool operator<(const basic_string<charT, traits,
 Allocator>&, 
 const charT*);
 
 template<class charT, class traits, class Allocator>
 bool operator<(const charT*, 
 const basic_string<charT, traits,
 Allocator>&);
 
 template<class charT, class traits, class Allocator>
 bool operator>(const basic_string<charT, traits,
 Allocator>&, 
 const basic_string<charT, traits,
 Allocator>&);
 
 template<class charT, class traits, class Allocator>
 bool operator>(const basic_string<charT, traits,
 Allocator>&, 
 const charT*);
 
 template<class charT, class traits, class Allocator>
 bool operator>(const charT*, 
 const basic_string<charT, traits,
 Allocator>&);
 template<class charT, class traits, class Allocator>
 bool operator<=(const basic_string<charT, traits,
 Allocator>&, 
 const basic_string<charT, traits,
 Allocator>&);
 
 template<class charT, class traits, class Allocator>
 bool operator<=(const basic_string<charT, traits,
 Allocator>&,
 const charT*);
 
 template<class charT, class traits, class Allocator>
 bool operator<=(const charT*, 
 const basic_string<charT, traits,
 Allocator>&);
 
 template<class charT, class traits, class Allocator>
 bool operator>=(const basic_string<charT, traits,
 Allocator>&,
 const basic_string<charT, traits,
 Allocator>&);
 
 template<class charT, class traits, class Allocator>
 bool operator>=(const basic_string<charT, traits,
 Allocator>&, 
 const charT*);
 
 template<class charT, class traits, class Allocator>
 bool operator>=(const charT*, 
 const basic_string<charT, traits,
 Allocator>&);
 template<class charT, class traits, class Allocator>
 void swap(basic_string<charT, traits, Allocator>&, 
 basic_string<charT, traits, Allocator>&);
 template<class charT, class traits, class Allocator>
 basic_istream<charT, traits>&
 operator>>(basic_istream<charT, traits>&, 
 basic_string<charT, traits, Allocator>& );
 
 template<class charT, class traits, class Allocator>
 basic_ostream<charT, traits>&
 operator<<(basic_ostream<charT, traits>&, 
 const basic_string<charT, traits, Allocator>&);
 
 template<class charT, class traits, class Allocator>
 basic_istream<charT, traits>&
 getline(basic_istream<charT, traits>&, 
 basic_string<charT, traits, Allocator>&, charT);
 
 template<class charT, class traits, class Allocator>
 basic_istream<charT, traits>&
 getline(basic_istream<charT, traits>&, 
 basic_string<charT, traits, Allocator>&);
 typedef basic_string<char> string;
 typedef basic_string<wchar_t> wstring;
}

See Also

Sequences, char_traits, basic_string

Standards Conformance

ISO/IEC 14882:1998 -- International Standard for Information Systems --Programming Language C++, Section 21.2



Previous fileTop of DocumentContentsIndex pageNext file

AltStyle によって変換されたページ (->オリジナル) /