跳到主要内容

构造函数和析构函数

函数功能

Allocator构造函数和析构函数。

函数原型

Allocator() = default;
virtual ~Allocator() = default;
Allocator(const Allocator &) = delete;
Allocator &operator=(const Allocator &) = delete;

参数说明

返回值

异常处理

约束说明

虚基类需要开发者派生。