1 #ifndef __JTOOLS__JHASHSET__
2 #define __JTOOLS__JHASHSET__
19 namespace JPP {
using namespace JTOOLS; }
33 template<
class JElement_t,
class JEvaluator_t = JHashEvaluator>
93 JHashSet(
const JEvaluator_t& evaluator = JEvaluator_t()) :
109 const int ival = this->
getValue(element);
111 if (!this->
router.has(ival)) {
115 this->
router.put(ival, distance(this->begin(), i));
117 for (
iterator __i = i; ++__i != this->end(); ) {
118 this->
router.put(this->
getValue(*__i), distance(this->begin(), __i));
General purpose class for a hash collection of unique elements.
JArgument< T >::argument_type argument_type
Template for generic class types.