// ---------------------------------------------------------------------- // // allocvec.cc - Do vectors support custom allocators? // // History: // 26-Jan-2000 WEB Initial draft // 21-Feb-2000 WEB Correct namespace // 27-Apr-2000 WEB Obviate need for vector'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_VECTOR_ALLOC( int, NaiveAllocator ) const v( 10, 0 ); return v[0]; } // main()