STLdoc
STLdocumentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Classes | Macros | Functions
ostream File Reference
#include <ios>

Classes

class  basic_ostream< _Elem, _Traits >
 
class  basic_ostream< _Elem, _Traits >::_Sentry_base
 
class  basic_ostream< _Elem, _Traits >::sentry
 

Macros

#define _OSTREAM_
 
#define _TRY_IO_BEGIN   { /* begin try block */
 
#define _CATCH_IO_END   } /* catch block for _Myios */
 
#define _CATCH_IO_(x)   } /* catch block for basic_ios x */
 

Functions

template<class _Elem , class _Traits >
basic_ostream< _Elem, _Traits > & operator<< (basic_ostream< _Elem, _Traits > &_Ostr, const char *_Val)
 
template<class _Elem , class _Traits >
basic_ostream< _Elem, _Traits > & operator<< (basic_ostream< _Elem, _Traits > &_Ostr, char _Ch)
 
template<class _Traits >
basic_ostream< char, _Traits > & operator<< (basic_ostream< char, _Traits > &_Ostr, const char *_Val)
 
template<class _Traits >
basic_ostream< char, _Traits > & operator<< (basic_ostream< char, _Traits > &_Ostr, char _Ch)
 
template<class _Elem , class _Traits >
basic_ostream< _Elem, _Traits > & operator<< (basic_ostream< _Elem, _Traits > &_Ostr, const _Elem *_Val)
 
template<class _Elem , class _Traits >
basic_ostream< _Elem, _Traits > & operator<< (basic_ostream< _Elem, _Traits > &_Ostr, _Elem _Ch)
 
template<class _Traits >
basic_ostream< char, _Traits > & operator<< (basic_ostream< char, _Traits > &_Ostr, const signed char *_Val)
 
template<class _Traits >
basic_ostream< char, _Traits > & operator<< (basic_ostream< char, _Traits > &_Ostr, signed char _Ch)
 
template<class _Traits >
basic_ostream< char, _Traits > & operator<< (basic_ostream< char, _Traits > &_Ostr, const unsigned char *_Val)
 
template<class _Traits >
basic_ostream< char, _Traits > & operator<< (basic_ostream< char, _Traits > &_Ostr, unsigned char _Ch)
 
template<class _Elem , class _Traits , class _Ty >
basic_ostream< _Elem, _Traits > & operator<< (basic_ostream< _Elem, _Traits > &&_Ostr, const _Ty &_Val)
 
template<class _Elem , class _Traits >
basic_ostream< _Elem, _Traits > &__CLRCALL_OR_CDECL endl (basic_ostream< _Elem, _Traits > &_Ostr)
 
template<class _Elem , class _Traits >
basic_ostream< _Elem, _Traits > &__CLRCALL_OR_CDECL ends (basic_ostream< _Elem, _Traits > &_Ostr)
 
template<class _Elem , class _Traits >
basic_ostream< _Elem, _Traits > &__CLRCALL_OR_CDECL flush (basic_ostream< _Elem, _Traits > &_Ostr)
 
template<class _Elem , class _Traits >
basic_ostream< _Elem, _Traits > & operator<< (basic_ostream< _Elem, _Traits > &_Ostr, const error_code &_Errcode)
 

Macro Definition Documentation

#define _CATCH_IO_ (   x)    } /* catch block for basic_ios x */
#define _CATCH_IO_END   } /* catch block for _Myios */
#define _OSTREAM_
#define _TRY_IO_BEGIN   { /* begin try block */

Function Documentation

template<class _Elem , class _Traits >
basic_ostream<_Elem, _Traits>& __CLRCALL_OR_CDECL endl ( basic_ostream< _Elem, _Traits > &  _Ostr)
inline
991  { // insert newline and flush stream
992  _Ostr.put(_Ostr.widen('\n'));
993  _Ostr.flush();
994  return (_Ostr);
995  }
_Myt &__CLR_OR_THIS_CALL flush()
Definition: ostream:573
_Elem __CLR_OR_THIS_CALL widen(char _Byte) const
Definition: ios:129
_Myt &__CLR_OR_THIS_CALL put(_Elem _Ch)
Definition: ostream:532
template<class _Elem , class _Traits >
basic_ostream<_Elem, _Traits>& __CLRCALL_OR_CDECL ends ( basic_ostream< _Elem, _Traits > &  _Ostr)
inline
1001  { // insert null character
1002  _Ostr.put(_Elem());
1003  return (_Ostr);
1004  }
_Myt &__CLR_OR_THIS_CALL put(_Elem _Ch)
Definition: ostream:532
template<class _Elem , class _Traits >
basic_ostream<_Elem, _Traits>& __CLRCALL_OR_CDECL flush ( basic_ostream< _Elem, _Traits > &  _Ostr)
inline
1010  { // flush stream
1011  _Ostr.flush();
1012  return (_Ostr);
1013  }
_Myt &__CLR_OR_THIS_CALL flush()
Definition: ostream:573
template<class _Traits >
basic_ostream<char, _Traits>& operator<< ( basic_ostream< char, _Traits > &  _Ostr,
const char *  _Val 
)
inline
780  { // insert NTBS into char stream
781  typedef char _Elem;
782  typedef basic_ostream<_Elem, _Traits> _Myos;
783  ios_base::iostate _State = ios_base::goodbit;
784  streamsize _Count = (streamsize)_Traits::length(_Val); // may overflow
785  streamsize _Pad = _Ostr.width() <= 0 || _Ostr.width() <= _Count
786  ? 0 : _Ostr.width() - _Count;
787  const typename _Myos::sentry _Ok(_Ostr);
788 
789  if (!_Ok)
790  _State |= ios_base::badbit;
791  else
792  { // state okay, insert
794  if ((_Ostr.flags() & ios_base::adjustfield) != ios_base::left)
795  for (; 0 < _Pad; --_Pad) // pad on left
796  if (_Traits::eq_int_type(_Traits::eof(),
797  _Ostr.rdbuf()->sputc(_Ostr.fill())))
798  { // insertion failed, quit
799  _State |= ios_base::badbit;
800  break;
801  }
802 
803  if (_State == ios_base::goodbit
804  && _Ostr.rdbuf()->sputn(_Val, _Count) != _Count)
805  _State |= ios_base::badbit;
806 
807  if (_State == ios_base::goodbit)
808  for (; 0 < _Pad; --_Pad) // pad on right
809  if (_Traits::eq_int_type(_Traits::eof(),
810  _Ostr.rdbuf()->sputc(_Ostr.fill())))
811  { // insertion failed, quit
812  _State |= ios_base::badbit;
813  break;
814  }
815  _Ostr.width(0);
816  _CATCH_IO_(_Ostr)
817  }
818 
819  _Ostr.setstate(_State);
820  return (_Ostr);
821  }
_Longlong streamsize
Definition: iosfwd:22
#define _CATCH_IO_(x)
Definition: ostream:32
unsigned int _Count
Definition: xcomplex:668
_In_ int _Val
Definition: vcruntime_string.h:62
#define _TRY_IO_BEGIN
Definition: ostream:30
_Mysb *__CLR_OR_THIS_CALL rdbuf() const
Definition: ios:90
_Elem __CLR_OR_THIS_CALL fill() const
Definition: ios:111
fmtflags __CLR_OR_THIS_CALL flags() const
Definition: xiosbase:376
Definition: iosfwd:631
streamsize __CLR_OR_THIS_CALL width() const
Definition: xiosbase:421
static constexpr _Iostate goodbit
Definition: xiosbase:87
int_type __CLR_OR_THIS_CALL sputc(_Elem _Ch)
Definition: streambuf:198
static constexpr _Iostate badbit
Definition: xiosbase:90
streamsize __CLR_OR_THIS_CALL sputn(const _Elem *_Ptr, streamsize _Count)
Definition: streambuf:205
void __CLR_OR_THIS_CALL setstate(iostate _State, bool _Reraise=false)
Definition: ios:56
static constexpr _Fmtflags adjustfield
Definition: xiosbase:76
Definition: xthread:164
static constexpr _Fmtflags left
Definition: xiosbase:62
template<class _Elem , class _Traits >
basic_ostream<_Elem, _Traits>& operator<< ( basic_ostream< _Elem, _Traits > &  _Ostr,
char  _Ch 
)
inline
741  { // insert a character
742  ios_base::iostate _State = ios_base::goodbit;
743  const typename basic_ostream<_Elem, _Traits>::sentry _Ok(_Ostr);
744 
745  if (_Ok)
746  { // state okay, insert
747  const ctype<_Elem>& _Ctype_fac = _USE(_Ostr.getloc(), ctype<_Elem>);
748  streamsize _Pad = _Ostr.width() <= 1 ? 0 : _Ostr.width() - 1;
749 
751  if ((_Ostr.flags() & ios_base::adjustfield) != ios_base::left)
752  for (; _State == ios_base::goodbit && 0 < _Pad;
753  --_Pad) // pad on left
754  if (_Traits::eq_int_type(_Traits::eof(),
755  _Ostr.rdbuf()->sputc(_Ostr.fill())))
756  _State |= ios_base::badbit;
757 
758  if (_State == ios_base::goodbit
759  && _Traits::eq_int_type(_Traits::eof(),
760  _Ostr.rdbuf()->sputc(_Ctype_fac.widen(_Ch))))
761  _State |= ios_base::badbit;
762 
763  for (; _State == ios_base::goodbit && 0 < _Pad;
764  --_Pad) // pad on right
765  if (_Traits::eq_int_type(_Traits::eof(),
766  _Ostr.rdbuf()->sputc(_Ostr.fill())))
767  _State |= ios_base::badbit;
768  _CATCH_IO_(_Ostr)
769  }
770 
771  _Ostr.width(0);
772  _Ostr.setstate(_State);
773  return (_Ostr);
774  }
_Longlong streamsize
Definition: iosfwd:22
#define _CATCH_IO_(x)
Definition: ostream:32
#define _USE(loc, fac)
Definition: xlocale:547
#define _TRY_IO_BEGIN
Definition: ostream:30
Definition: ostream:117
locale __CLR_OR_THIS_CALL getloc() const
Definition: xiosbase:433
_Check_return_ _In_ wchar_t _Ch
Definition: vcruntime_string.h:89
_Mysb *__CLR_OR_THIS_CALL rdbuf() const
Definition: ios:90
_Elem __CLR_OR_THIS_CALL fill() const
Definition: ios:111
fmtflags __CLR_OR_THIS_CALL flags() const
Definition: xiosbase:376
Definition: xlocale:2115
streamsize __CLR_OR_THIS_CALL width() const
Definition: xiosbase:421
_Elem __CLR_OR_THIS_CALL widen(char _Byte) const
Definition: xlocale:2164
static constexpr _Iostate goodbit
Definition: xiosbase:87
int_type __CLR_OR_THIS_CALL sputc(_Elem _Ch)
Definition: streambuf:198
static constexpr _Iostate badbit
Definition: xiosbase:90
void __CLR_OR_THIS_CALL setstate(iostate _State, bool _Reraise=false)
Definition: ios:56
static constexpr _Fmtflags adjustfield
Definition: xiosbase:76
Definition: xthread:164
static constexpr _Fmtflags left
Definition: xiosbase:62
template<class _Elem , class _Traits , class _Ty >
basic_ostream<_Elem, _Traits>& operator<< ( basic_ostream< _Elem, _Traits > &&  _Ostr,
const _Ty &  _Val 
)
inline
982  { // insert to rvalue stream
983  return (_Ostr << _Val);
984  }
_In_ int _Val
Definition: vcruntime_string.h:62
template<class _Traits >
basic_ostream<char, _Traits>& operator<< ( basic_ostream< char, _Traits > &  _Ostr,
unsigned char  _Ch 
)
inline
973  { // insert an unsigned char
974  return (_Ostr << (char)_Ch);
975  }
_Check_return_ _In_ wchar_t _Ch
Definition: vcruntime_string.h:89
template<class _Traits >
basic_ostream<char, _Traits>& operator<< ( basic_ostream< char, _Traits > &  _Ostr,
const unsigned char *  _Val 
)
inline
966  { // insert an unsigned char NTBS
967  return (_Ostr << (const char *)_Val);
968  }
_In_ int _Val
Definition: vcruntime_string.h:62
template<class _Traits >
basic_ostream<char, _Traits>& operator<< ( basic_ostream< char, _Traits > &  _Ostr,
char  _Ch 
)
inline
826  { // insert a char into char stream
827  typedef char _Elem;
828  typedef basic_ostream<_Elem, _Traits> _Myos;
829  ios_base::iostate _State = ios_base::goodbit;
830  const typename _Myos::sentry _Ok(_Ostr);
831 
832  if (_Ok)
833  { // state okay, insert
834  streamsize _Pad = _Ostr.width() <= 1 ? 0 : _Ostr.width() - 1;
835 
837  if ((_Ostr.flags() & ios_base::adjustfield) != ios_base::left)
838  for (; _State == ios_base::goodbit && 0 < _Pad;
839  --_Pad) // pad on left
840  if (_Traits::eq_int_type(_Traits::eof(),
841  _Ostr.rdbuf()->sputc(_Ostr.fill())))
842  _State |= ios_base::badbit;
843 
844  if (_State == ios_base::goodbit
845  && _Traits::eq_int_type(_Traits::eof(),
846  _Ostr.rdbuf()->sputc(_Ch)))
847  _State |= ios_base::badbit;
848 
849  for (; _State == ios_base::goodbit && 0 < _Pad;
850  --_Pad) // pad on right
851  if (_Traits::eq_int_type(_Traits::eof(),
852  _Ostr.rdbuf()->sputc(_Ostr.fill())))
853  _State |= ios_base::badbit;
854  _CATCH_IO_(_Ostr)
855  }
856 
857  _Ostr.width(0);
858  _Ostr.setstate(_State);
859  return (_Ostr);
860  }
_Longlong streamsize
Definition: iosfwd:22
#define _CATCH_IO_(x)
Definition: ostream:32
#define _TRY_IO_BEGIN
Definition: ostream:30
_Check_return_ _In_ wchar_t _Ch
Definition: vcruntime_string.h:89
_Mysb *__CLR_OR_THIS_CALL rdbuf() const
Definition: ios:90
_Elem __CLR_OR_THIS_CALL fill() const
Definition: ios:111
fmtflags __CLR_OR_THIS_CALL flags() const
Definition: xiosbase:376
Definition: iosfwd:631
streamsize __CLR_OR_THIS_CALL width() const
Definition: xiosbase:421
static constexpr _Iostate goodbit
Definition: xiosbase:87
int_type __CLR_OR_THIS_CALL sputc(_Elem _Ch)
Definition: streambuf:198
static constexpr _Iostate badbit
Definition: xiosbase:90
void __CLR_OR_THIS_CALL setstate(iostate _State, bool _Reraise=false)
Definition: ios:56
static constexpr _Fmtflags adjustfield
Definition: xiosbase:76
Definition: xthread:164
static constexpr _Fmtflags left
Definition: xiosbase:62
template<class _Traits >
basic_ostream<char, _Traits>& operator<< ( basic_ostream< char, _Traits > &  _Ostr,
const signed char *  _Val 
)
inline
952  { // insert a signed char NTBS
953  return (_Ostr << (const char *)_Val);
954  }
_In_ int _Val
Definition: vcruntime_string.h:62
template<class _Elem , class _Traits >
basic_ostream<_Elem, _Traits>& operator<< ( basic_ostream< _Elem, _Traits > &  _Ostr,
_Elem  _Ch 
)
inline
913  { // insert a character
914  typedef basic_ostream<_Elem, _Traits> _Myos;
915 
916  ios_base::iostate _State = ios_base::goodbit;
917  const typename _Myos::sentry _Ok(_Ostr);
918 
919  if (_Ok)
920  { // state okay, insert
921  streamsize _Pad = _Ostr.width() <= 1 ? 0 : _Ostr.width() - 1;
922 
924  if ((_Ostr.flags() & ios_base::adjustfield) != ios_base::left)
925  for (; _State == ios_base::goodbit && 0 < _Pad;
926  --_Pad) // pad on left
927  if (_Traits::eq_int_type(_Traits::eof(),
928  _Ostr.rdbuf()->sputc(_Ostr.fill())))
929  _State |= ios_base::badbit;
930 
931  if (_State == ios_base::goodbit
932  && _Traits::eq_int_type(_Traits::eof(),
933  _Ostr.rdbuf()->sputc(_Ch)))
934  _State |= ios_base::badbit;
935 
936  for (; _State == ios_base::goodbit && 0 < _Pad;
937  --_Pad) // pad on right
938  if (_Traits::eq_int_type(_Traits::eof(),
939  _Ostr.rdbuf()->sputc(_Ostr.fill())))
940  _State |= ios_base::badbit;
941  _CATCH_IO_(_Ostr)
942  }
943 
944  _Ostr.width(0);
945  _Ostr.setstate(_State);
946  return (_Ostr);
947  }
_Longlong streamsize
Definition: iosfwd:22
#define _CATCH_IO_(x)
Definition: ostream:32
#define _TRY_IO_BEGIN
Definition: ostream:30
_Check_return_ _In_ wchar_t _Ch
Definition: vcruntime_string.h:89
_Mysb *__CLR_OR_THIS_CALL rdbuf() const
Definition: ios:90
_Elem __CLR_OR_THIS_CALL fill() const
Definition: ios:111
fmtflags __CLR_OR_THIS_CALL flags() const
Definition: xiosbase:376
Definition: iosfwd:631
streamsize __CLR_OR_THIS_CALL width() const
Definition: xiosbase:421
static constexpr _Iostate goodbit
Definition: xiosbase:87
int_type __CLR_OR_THIS_CALL sputc(_Elem _Ch)
Definition: streambuf:198
static constexpr _Iostate badbit
Definition: xiosbase:90
void __CLR_OR_THIS_CALL setstate(iostate _State, bool _Reraise=false)
Definition: ios:56
static constexpr _Fmtflags adjustfield
Definition: xiosbase:76
Definition: xthread:164
static constexpr _Fmtflags left
Definition: xiosbase:62
template<class _Elem , class _Traits >
basic_ostream<_Elem, _Traits>& operator<< ( basic_ostream< _Elem, _Traits > &  _Ostr,
const _Elem *  _Val 
)
inline
866  { // insert NTCS
867  typedef basic_ostream<_Elem, _Traits> _Myos;
868 
869  ios_base::iostate _State = ios_base::goodbit;
870  streamsize _Count = (streamsize)_Traits::length(_Val); // may overflow
871  streamsize _Pad = _Ostr.width() <= 0 || _Ostr.width() <= _Count
872  ? 0 : _Ostr.width() - _Count;
873  const typename _Myos::sentry _Ok(_Ostr);
874 
875  if (!_Ok)
876  _State |= ios_base::badbit;
877  else
878  { // state okay, insert
880  if ((_Ostr.flags() & ios_base::adjustfield) != ios_base::left)
881  for (; 0 < _Pad; --_Pad) // pad on left
882  if (_Traits::eq_int_type(_Traits::eof(),
883  _Ostr.rdbuf()->sputc(_Ostr.fill())))
884  { // insertion failed, quit
885  _State |= ios_base::badbit;
886  break;
887  }
888 
889  if (_State == ios_base::goodbit
890  && _Ostr.rdbuf()->sputn(_Val, _Count) != _Count)
891  _State |= ios_base::badbit;
892 
893  if (_State == ios_base::goodbit)
894  for (; 0 < _Pad; --_Pad) // pad on right
895  if (_Traits::eq_int_type(_Traits::eof(),
896  _Ostr.rdbuf()->sputc(_Ostr.fill())))
897  { // insertion failed, quit
898  _State |= ios_base::badbit;
899  break;
900  }
901  _Ostr.width(0);
902  _CATCH_IO_(_Ostr)
903  }
904 
905  _Ostr.setstate(_State);
906  return (_Ostr);
907  }
_Longlong streamsize
Definition: iosfwd:22
#define _CATCH_IO_(x)
Definition: ostream:32
unsigned int _Count
Definition: xcomplex:668
_In_ int _Val
Definition: vcruntime_string.h:62
#define _TRY_IO_BEGIN
Definition: ostream:30
_Mysb *__CLR_OR_THIS_CALL rdbuf() const
Definition: ios:90
_Elem __CLR_OR_THIS_CALL fill() const
Definition: ios:111
fmtflags __CLR_OR_THIS_CALL flags() const
Definition: xiosbase:376
Definition: iosfwd:631
streamsize __CLR_OR_THIS_CALL width() const
Definition: xiosbase:421
static constexpr _Iostate goodbit
Definition: xiosbase:87
int_type __CLR_OR_THIS_CALL sputc(_Elem _Ch)
Definition: streambuf:198
static constexpr _Iostate badbit
Definition: xiosbase:90
streamsize __CLR_OR_THIS_CALL sputn(const _Elem *_Ptr, streamsize _Count)
Definition: streambuf:205
void __CLR_OR_THIS_CALL setstate(iostate _State, bool _Reraise=false)
Definition: ios:56
static constexpr _Fmtflags adjustfield
Definition: xiosbase:76
Definition: xthread:164
static constexpr _Fmtflags left
Definition: xiosbase:62
template<class _Traits >
basic_ostream<char, _Traits>& operator<< ( basic_ostream< char, _Traits > &  _Ostr,
signed char  _Ch 
)
inline
959  { // insert a signed char
960  return (_Ostr << (char)_Ch);
961  }
_Check_return_ _In_ wchar_t _Ch
Definition: vcruntime_string.h:89
template<class _Elem , class _Traits >
basic_ostream<_Elem, _Traits>& operator<< ( basic_ostream< _Elem, _Traits > &  _Ostr,
const char *  _Val 
)
inline
694  { // insert NTBS
695  ios_base::iostate _State = ios_base::goodbit;
696  streamsize _Count = (streamsize)_CSTD strlen(_Val); // may overflow
697  streamsize _Pad = _Ostr.width() <= 0 || _Ostr.width() <= _Count
698  ? 0 : _Ostr.width() - _Count;
699  const typename basic_ostream<_Elem, _Traits>::sentry _Ok(_Ostr);
700 
701  if (!_Ok)
702  _State |= ios_base::badbit;
703  else
704  { // state okay, insert characters
706  const ctype<_Elem>& _Ctype_fac = _USE(_Ostr.getloc(), ctype<_Elem>);
707  if ((_Ostr.flags() & ios_base::adjustfield) != ios_base::left)
708  for (; 0 < _Pad; --_Pad) // pad on left
709  if (_Traits::eq_int_type(_Traits::eof(),
710  _Ostr.rdbuf()->sputc(_Ostr.fill())))
711  { // insertion failed, quit
712  _State |= ios_base::badbit;
713  break;
714  }
715 
716  for (; _State == ios_base::goodbit && 0 < _Count; --_Count, ++_Val)
717  if (_Traits::eq_int_type(_Traits::eof(),
718  _Ostr.rdbuf()->sputc(_Ctype_fac.widen(*_Val))))
719  _State |= ios_base::badbit;
720 
721  if (_State == ios_base::goodbit)
722  for (; 0 < _Pad; --_Pad) // pad on right
723  if (_Traits::eq_int_type(_Traits::eof(),
724  _Ostr.rdbuf()->sputc(_Ostr.fill())))
725  { // insertion failed, quit
726  _State |= ios_base::badbit;
727  break;
728  }
729  _Ostr.width(0);
730  _CATCH_IO_(_Ostr)
731  }
732 
733  _Ostr.setstate(_State);
734  return (_Ostr);
735  }
_Longlong streamsize
Definition: iosfwd:22
#define _CATCH_IO_(x)
Definition: ostream:32
unsigned int _Count
Definition: xcomplex:668
#define _USE(loc, fac)
Definition: xlocale:547
_In_ int _Val
Definition: vcruntime_string.h:62
#define _TRY_IO_BEGIN
Definition: ostream:30
Definition: ostream:117
locale __CLR_OR_THIS_CALL getloc() const
Definition: xiosbase:433
_Mysb *__CLR_OR_THIS_CALL rdbuf() const
Definition: ios:90
_Elem __CLR_OR_THIS_CALL fill() const
Definition: ios:111
fmtflags __CLR_OR_THIS_CALL flags() const
Definition: xiosbase:376
Definition: xlocale:2115
streamsize __CLR_OR_THIS_CALL width() const
Definition: xiosbase:421
static constexpr _Iostate goodbit
Definition: xiosbase:87
int_type __CLR_OR_THIS_CALL sputc(_Elem _Ch)
Definition: streambuf:198
#define _CSTD
Definition: yvals.h:570
static constexpr _Iostate badbit
Definition: xiosbase:90
void __CLR_OR_THIS_CALL setstate(iostate _State, bool _Reraise=false)
Definition: ios:56
static constexpr _Fmtflags adjustfield
Definition: xiosbase:76
Definition: xthread:164
static constexpr _Fmtflags left
Definition: xiosbase:62
template<class _Elem , class _Traits >
basic_ostream<_Elem, _Traits>& operator<< ( basic_ostream< _Elem, _Traits > &  _Ostr,
const error_code _Errcode 
)
inline
1021  { // display error code
1022  return (_Ostr << _Errcode.category().name() << ':' << _Errcode.value());
1023  }
int value() const _NOEXCEPT
Definition: system_error:266
const error_category & category() const _NOEXCEPT
Definition: system_error:271
virtual const char * name() const _NOEXCEPT=0