#include <ace/Map_T.h>
template<class T> class ACE_Incremental_Key_Generator {
public:
ACE_Incremental_Key_Generator (void);
int operator () (T &t);
T& current_value (void);
protected:
T t_;
};
- Constructor that accepts 0 in the constructor. - Prefix increment. - Assignment.
Note that a primitive types such as u_long, int, etc., are suitable for this class.
ACE_Incremental_Key_Generator (void);
int operator () (T &t);
T& current_value (void);
T t_;
irfan@cs.wustl.edu