// ---------------------------------------------------------------------- // // alloclst.cc - Do lists support custom allocators? // // History: // 26-Jan-2000 WEB Initial draft // 21-Feb-2000 WEB Correct namespace // 27-Apr-2000 WEB Obviate need for list's push_front() // 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_LIST_ALLOC( int, NaiveAllocator ) const l( 10, 0 ); return l.front(); } // main()