ends (C++-Standardbibliothek)
Beendet eine Zeichenfolge.
template class<_Elem, _Tr>
basic_ostream<_Elem, _Tr>& ends(
basic_ostream<_Elem, _Tr>& _Ostr
);
Parameter
_Elem
Der Elementtyp._Ostr
Ein Objekt vom Typ basic_ostream._Tr
Zeichenmerkmale.
Rückgabewert
Ein Objekt vom Typ basic_ostream.
Hinweise
Der Manipulator ruft _Ostr**.put(_Elem('\0'**)) auf. Sie gibt _Ostr. zurück
Beispiel
// ostream_ends.cpp
// compile with: /EHsc
#include <iostream>
int main( )
{
using namespace std;
cout << "a";
cout << "b" << ends;
cout << "c" << endl;
}
Anforderungen
Header: <ostream>
Namespace: std