About endl...

Benjamin Kosnik bkoz@redhat.com
Mon Nov 27 15:02:00 GMT 2000


It's a feature.

<ostream> declares endl to be:

  // 27.6.2.7 Standard basic_ostream manipulators
  template<typename _CharT, typename _Traits>
    basic_ostream<_CharT, _Traits>& 
    endl(basic_ostream<_CharT, _Traits>& __os)
    { return flush(__os.put(__os.widen('\n'))); }

This is a change from the non-templatized v2. 

-benjamin


More information about the Libstdc++ mailing list