class CustomClass { CustomClass(int &k, bool &b); ~CustomClass();private: int i; bool b; ...}
list< Customclass* >cCList;
list< CustomClass* >::iterator cCIterator = cCList.begin();cCList.push_back( new CustomClass( (*cCIterator)->k, false ) );cCList.push_back( new CustomClass( (*cCIterator)->k, (*cCIterator)->b ) );
CustomClass::CustomClass(int &k, bool &bValue){ i = k; b = bValue; ...}
cCList.push_back( new CustomClass( (*cCIterator)->k, true ) );