ALib C++ Library
Library Version: 2510 R0
Documentation generated by doxygen
Loading...
Searching...
No Matches
alib::strings::APPENDABLES::AppendableTraits< compatibility::std::TISReadLine< TChar >, TChar, lang::HeapAllocator > Struct Template Reference

Description:

template<typename TChar>
struct alib::strings::APPENDABLES::AppendableTraits< compatibility::std::TISReadLine< TChar >, TChar, lang::HeapAllocator >

Specialization of the type trait AppendableTraits for type TISReadLine.

Template Parameters
TCharThe AString's character type.

Definition at line 148 of file stdiostream.mpp.

Public Method Index:

void operator() (TAString< TChar, lang::HeapAllocator > &target, const compatibility::std::TISReadLine< TChar > &reader)
 

Method Details:

◆ operator()()

template<typename TChar>
void alib::strings::APPENDABLES::AppendableTraits< compatibility::std::TISReadLine< TChar >, TChar, lang::HeapAllocator >::operator() ( TAString< TChar, lang::HeapAllocator > & target,
const compatibility::std::TISReadLine< TChar > & reader )

Reads a line from a text file and appends the contents to target. If the end of the input stream was reached, field IsEOF of parameter reader will be set to true, which indicates that the next read operation would fail if it was performed.

Note
For setting field IsEOF the object will be cast to a non-constant reference. See functor AppendableTraits for an explanation why it is OK to do so.
Parameters
targetThe AString object to read into.
readerThe object holding the std::istream and some parameters.

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