January 2020
Intermediate to advanced
454 pages
11h 25m
English
Our custom allocator constructor is defined as follows:
explicit container( const Allocator &alloc ) noexcept : m_v(alloc) { std::cout << "2\n"; }
As with the previous constructor, this constructor creates an empty vector, but with an allocator that already exists.