for (i = this->ucd_parent->items.begin(); i != this->ucd_parent->items.end(); ++i) { if(*i == this) { *i = item; } }