Which is present in the basic interface of the allocator interface?

Huỳnh Hiền

New member
Which is present in the basic interface of the allocator interface?
A. Set of typedefs
B. A pair of allocation functions
C. allocate()
D. All of the mentioned
 
Answer: d
Explanation: The basic interface of an allocator class consists of a set of typedefs, a pair of allocation functions, allocate() and deallocate() and a pair of construction/destruction members, construct() and destroy().
 

Tìm kiếm

Back
Top