STLdoc
STLdocumentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Private Attributes | List of all members
_Wrap_istream< _Elem, _Traits, _Ty > Class Template Reference

Public Member Functions

 _Wrap_istream (basic_istream< _Elem, _Traits > &_Is)
 
_Ty operator() ()
 
_Wrap_istreamoperator= (const _Wrap_istream &)=delete
 

Private Attributes

basic_istream< _Elem, _Traits > & _Str
 

Constructor & Destructor Documentation

template<class _Elem, class _Traits, class _Ty>
_Wrap_istream< _Elem, _Traits, _Ty >::_Wrap_istream ( basic_istream< _Elem, _Traits > &  _Is)
inline
181  : _Str(_Is)
182  { // construct
183  }
basic_istream< _Elem, _Traits > & _Str
Definition: random:197

Member Function Documentation

template<class _Elem, class _Traits, class _Ty>
_Ty _Wrap_istream< _Elem, _Traits, _Ty >::operator() ( )
inline
186  { // read next value
187  _Ty _Data;
188  _Str >> _Data;
189  if (!_Str)
190  _Xinvalid_argument("input stream corrupted");
191  return (_Data);
192  }
basic_istream< _Elem, _Traits > & _Str
Definition: random:197
template<class _Elem, class _Traits, class _Ty>
_Wrap_istream& _Wrap_istream< _Elem, _Traits, _Ty >::operator= ( const _Wrap_istream< _Elem, _Traits, _Ty > &  )
delete

Member Data Documentation

template<class _Elem, class _Traits, class _Ty>
basic_istream<_Elem, _Traits>& _Wrap_istream< _Elem, _Traits, _Ty >::_Str
private

The documentation for this class was generated from the following file: