Hello list,
I've got a quick question.
I'm writing a linked list library for a program I'm working on.
I was trying to make this versatile, if possible, and wanted to add in some
operator overloading.
This looks vairly easy, but I'm not totally sure what to return.
Basically my block of code looks like this:
{
this->Append(val);
}
the prototype is:
LList* operator +=(T val)
I'm not sure if I should return this, and then make another that is just LList
operator +=... or just return void, I'd like to support something like:
i+=x;
well, there isn't much of a way not to support it.
I could return void, and I would remain unchanged I think.
Ideas would be welcome.
Thanks,
Tyler Littlefield
http://tysdomain.com
[Non-text portions of this message have been removed]