typedef A deque<X, A>::allocator_type;
#include <deque>
#include <iostream> #include <deque> int main() { using namespace std; // Create a deque and output its max allocation size deque<int> qDeque; deque<int>::allocator_type qAllocator = qDeque.get_allocator(); cout << "The max allocation size = " << qAllocator.max_size() << endl; // Keep the window open cin.get(); return 0; }
© 20072024 XoaX.net LLC. All rights reserved.