template <class charT> struct char_traits;
Character traits
C++ strings can be based on different types of characters. And each type of character can also have different properties, which are known as character traits.template <class charT> struct char_traits;
fpos | Stream position class template (class template) |
streamoff | Stream offset type (type) |
streamsize | Stream size type (types) |
Statement: | Explained in: |
---|---|
int a::b(int c) { } | Classes |
a->b | Data Structures |
class a: public b { }; | Friendship and inheritance |
friend
keyword.1 2 |
|
template <class stateT> class fpos;
1 2 |
|
streamoff | Stream offset type (type) |
streamsize | Stream size type (types) |
fpos | Stream position class template (class template) |
streampos | Stream position type (type) |
string ( );
string ( const string& str );
string ( const string& str, size_t pos, size_t n = npos );
string ( const char * s, size_t n );
string ( const char * s );
string ( size_t n, char c );
template<class InputIterator> string (InputIterator begin, InputIterator end);
1 2 3 4 5 6 7 8 9 10 |
| Output: Hello World! |