65.9K
CodeProject is changing. Read more.
Home

Some useful additions for the C++ standard library

starIconstarIconstarIconstarIcon
emptyStarIcon
starIcon

4.58/5 (5 votes)

Apr 12, 2000

viewsIcon

88737

downloadIcon

609

Defines some TCHAR compatible STL elements and gives you an std::ostream to send output to the debugger windows.

  • Download source files - 3 Kb
  • This is some simple, but useful code for STL users. It defines some TCHAR compatible elements of STL:

    _tstring	- wstring or string
    _tostream	- wostream or ostream
    _tistream	- wistream or istream
    
    _tcout	- wcout or cout
    _tcin	- wcin or cin
    _tcerr	- wcerr or cerr
    _tclog	- wclog or clog
    
    It gives you a std::ostream to dump objects into the debugger window, some string functions and adds support for __int64 types.

    No really fancy stuff, but you may need it :-)