endl

Kończy linię i opróżnia bufor.

template class<_Elem, _Tr>
   basic_ostream<_Elem, _Tr>& endl( 
      basic_ostream<_Elem, _Tr>& _Ostr 
   );

Parametry

  • _Elem
    Typ elementu.

  • _Ostr
    Obiekt typu basic_ostream.

  • _Tr
    Cechy charakteru.

Wartość zwracana

Obiekt typu basic_ostream.

Uwagi

Wywołania manipulator _Ostr**.put(_Ostr.** widen('\n')), and then calls _Ostr**.**flush.Zwraca _Ostr.

Przykład

// ostream_endl.cpp
// compile with: /EHsc
#include <iostream>

int main( ) 
{
   using namespace std;
   cout << "testing" << endl;
}
  

Wymagania

Nagłówek:<ostream>

Przestrzeń nazw: std

Zobacz też

Informacje

iostream Programming

Konwencje iostream