basic_string::allocator_type
Тип, представляющий класс для выделения строковых объектов.
typedef Allocator allocator_type;
Заметки
Тип синонима для параметра Allocator шаблона.
Пример
// 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
}
Требования
заголовок: <string>
std пространство имен: