Condividi tramite


basic_string::pointer

Tipo che fornisce un puntatore a un elemento del carattere in una stringa o in una matrice di caratteri.

typedef typename allocator_type::pointer pointer;

Note

Il tipo è sinonimo di allocator_type::pointer.

Per tipo stringa, è equivalente a Carattere a destra esteso.

Esempio

// 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;
}
  

Requisiti

Intestazione: <string>

Spazio dei nomi: std

Vedere anche

Riferimenti

Classe basic_string