Go to the source code of this file.
|
template<class _CharT , class _Traits , class _Alloc > |
_STLP_BEGIN_NAMESPACE basic_ostream< _CharT, _Traits > &_STLP_CALL | operator<< (basic_ostream< _CharT, _Traits > &__os, const basic_string< _CharT, _Traits, _Alloc > &__s) |
|
template<class _CharT , class _Traits , class _Alloc > |
basic_istream< _CharT, _Traits > &_STLP_CALL | operator>> (basic_istream< _CharT, _Traits > &__is, basic_string< _CharT, _Traits, _Alloc > &__s) |
|
template<class _CharT , class _Traits , class _Alloc > |
basic_istream< _CharT, _Traits > &_STLP_CALL | getline (basic_istream< _CharT, _Traits > &__is, basic_string< _CharT, _Traits, _Alloc > &__s, _CharT __delim) |
|
template<class _CharT , class _Traits , class _Alloc > |
basic_istream< _CharT, _Traits > &_STLP_CALL | getline (basic_istream< _CharT, _Traits > &__is, basic_string< _CharT, _Traits, _Alloc > &__s) |
|
◆ getline() [1/2]
template<class _CharT , class _Traits , class _Alloc >
Definition at line 133 of file _string_io.c.
138 size_type __nread = 0;
145 int __c1 = __buf->
sbumpc();
152 _CharT
__c = _Traits::to_char_type(__c1);
160 if (__nread == 0 || __nread >= __s.
max_size())
basic_streambuf< _CharT, _Traits > * rdbuf() const
#define eq(received, expected, label, type)
_Base::size_type size_type
void push_back(_CharT __c)
void setstate(iostate __state)
_Check_return_ _CRTIMP int __cdecl __cdecl eof(_In_ int _FileHandle)
size_type max_size() const
Referenced by getline().
◆ getline() [2/2]
template<class _CharT , class _Traits , class _Alloc >
Definition at line 65 of file _string_io.h.
basic_istream< _CharT, _Traits > &_STLP_CALL getline(basic_istream< _CharT, _Traits > &__is, basic_string< _CharT, _Traits, _Alloc > &__s, _CharT __delim)
◆ operator<<()
template<class _CharT , class _Traits , class _Alloc >
Definition at line 30 of file _string_io.c.
38 typename __ostream::sentry __sentry(__os);
62 __os.setstate(__ostream::failbit);
#define __STATIC_CAST(__x, __y)
const _CharT * data() const
_STLP_BEGIN_NAMESPACE bool _STLP_CALL __stlp_string_fill(basic_ostream< _CharT, _Traits > &__os, basic_streambuf< _CharT, _Traits > *__buf, streamsize __n)
_Base::size_type size_type
_STLP_STATIC_ASSERT(sizeof(nl_catd_type)<=sizeof(int)) class _STLP_CLASS_DECLSPEC _Catalog_nl_catd_map
streamsize sputn(const char_type *__s, streamsize __n)
◆ operator>>()
template<class _CharT , class _Traits , class _Alloc >