// ---------------------------------------------------------------------- // // allocdeq.cc - Do deques support custom allocators? // // History: // 26-Jan-2000 WEB Initial draft // 21-Feb-2000 WEB Correct namespace // 27-Apr-2000 WEB Obviate need for deque's member function at() // 25-Apr-2001 WEB s//"ISOcxx\/ISOcxxSyntax.hh"/ // // ---------------------------------------------------------------------- #include "ISOcxx/ISOcxxSyntax.hh" #include // grab our naive custom allocator: #include "Naive.hh" int main() { std::STL_DEQUE_ALLOC( int, NaiveAllocator ) const d( 10, 0 ); return d[0]; } // main()