Aracılığıyla paylaş


basic_string::allocator_type

Temsil eden bir string nesnesi için ayırıcı sınıf türü.

typedef Allocator allocator_type;

Notlar

Eşanlamlıdır şablonu parametresinin türü ayırıcı.

Örnek

// basic_string_allocator_type.cpp
// compile with: /EHsc
#include <string>
#include <iostream>

int main( ) 
{
   using namespace std;
   // The following lines declare objects
   // that use the default allocator.
   string s1;
   basic_string <char>::allocator_type xchar = s1.get_allocator( );
   // You can now call functions on the allocator class xchar used by s1
}

Gereksinimler

Başlık: <string>

Namespace: std

Ayrıca bkz.

Başvuru

basic_string Class