basic_string::pointer

Ein Typ, der einen Zeiger auf ein Zeichenelement in einer Zeichenfolge oder einem Zeichenarray bereitstellt.

typedef typename allocator_type::pointer pointer;

Hinweise

Der Typ ist ein Synonym für allocator_type::pointer.

Für Typ string, ist es zu char* entsprechend.

Beispiel

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

Anforderungen

Header: <string>

Namespace: std

Siehe auch

Referenz

basic_string Class