Function CSPPool<T>::Add()

Description:
Adds one or more copies of a T object to the pool.

Prototype:
void Add(const T& Object, unsigned long ulCount = 1);

Arguments:
  • const T& Object [IN]
    The object to copy and add to the pool.

  • unsigned long ulCount = 1 [IN]
    The number of copies to add to the pool.



Return value:
No return value (void).

Examples:
CSPPool<CSPString> Pool;
...
CSPString str = "Hello";
Pool.Add( str, 10 );

See also:
member functions Add( T* ), AddNew(), Get()
CSPPool<T> | Template classes | Class Categories | Online help home | Back

www.micronovae.com

Copyright © 2002 - 2005 Micronovae Ltd