basic_string::pointer
Bir dize veya karakter dizisi içinde bir karakter öğesi için bir işaretçi sağlayan bir türü.
typedef typename allocator_type::pointer pointer;
Notlar
Tür eşanlamlıdır allocator_type::pointer.
Yazıda dize, eşdeğeri olan char *.
Örnek
// basic_string_pointer.cpp
// compile with: /EHsc
#include <string>
#include <iostream>
int main( )
{
using namespace std;
basic_string<char>::pointer pstr1a = "In Here";
char *cstr1b = "Out There";
cout << "The string pstr1a is: " << pstr1a << "." << endl;
cout << "The C-string cstr1b is: " << cstr1b << "." << endl;
}
Gereksinimler
Başlık: <string>
Namespace: std