RE: [boost] Object Pool

Please ignore my prior question. I finally understood the whole process. Abdul -----Original Message----- From: Abdullah Sowayan Sent: Monday, October 18, 2004 11:53 AM To: boost@lists.boost.org Subject: [boost] Object Pool I am trying to use the Object Pool library. In the documentation I came across the following (html table): t.construct(???) ElementType * ElementType must have a constructor matching ???; the number of parameters given must not exceed what is supported through pool_construct <http://www.boost.org/libs/pool/doc/implementation/pool_construct.html> Allocates and initializes an object of type ElementType. If out of memory, returns 0. Amortized O(1). 1) What is "???" referring to? 2) What is I have the following class class A { public: A(int i, std::string s); ... }; How can I create a pool of As? Note that there isn't a constructor A::A( ) that takes nothing. How can I say that the pool for instance would initialize all objects to A::A(1, "Howdy") Thanks, Abdul _______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
participants (1)
-
Abdullah Sowayan