All pastes #2050910 Raw Edit

Something

public text v1 · immutable
#2050910 ·published 2011-04-26 16:04 UTC
rendered paste body
SLLIntStorage& operator=(SLLIntStorage &a)
{
	clock_t begin=clock();
	_Head = a._Head;
	_Tail = a._Tail;
	Node *curr = a._Head;

	while(curr != NULL)
	{
	        CreateNode(curr->data());
		curr = curr->Next();
	}

	clock_t end=clock();
	cTimer t;
	cout << "Copy Constructor - Done: Time taken: " << double(t.diffclock(end,begin)) << " MilliSeconds." << endl;
}