strstreambuf::pcount
Denetlenen sıra yazılmış öğe sayısı sayısını döndürür.
streamsize pcount( ) const;
Dönüş Değeri
Denetlenen sıra yazılmış öğe sayısı sayısı.
Notlar
Özellikle de, pptr bir null işaretçi ise sıfır işlevini verir.Aksi takdirde, döner pptr – pbase.
Örnek
// strstreambuf_pcount.cpp
// compile with: /EHsc
#include <iostream>
#include <strstream>
using namespace std;
int main( )
{
strstream x;
x << "test1";
cout << x.rdbuf( )->pcount( ) << endl;
x << "test2";
cout << x.rdbuf( )->pcount( ) << endl;
}
Çıktı
5
10
Gereksinimler
Başlık: <strstream>
Namespace: std