// ---------------------------------------------------------------------- // // alloc.cc - Is allocator<> a templatized class? // // History: // 26-Jan-2000 WEB Initial draft // 21-Feb-2000 WEB Correct namespace // 21-Jul-2000 WEB Add second (hint) argument to allocate(); avoid // functional initialization notation // 25-Apr-2001 WEB s//"ISOcxx\/ISOcxxSyntax.hh"/ // // ---------------------------------------------------------------------- #include "ISOcxx/ISOcxxSyntax.hh" #include int main() { typedef int NeededType; std::STL_ALLOCATOR( NeededType ) a; NeededType * p = a.allocate(3,0); p[0] = 0; p[1] = 1; p[2] = 2; return 0; } // main()