>>last 15 years
Wow, I have just programming for about 2 yrs on/off so you have a lot more knowledge than me. Nevertheless I would still like to debate even though if I may be wrong, if that's OK with you.
>>Well, if that is the case ...<snipped>
<<
I see what you mean, let me rephrase what I meant to say, my words
weren't being clear. A reason why a person might use "!=" versus
"<" would rely mainly in its context. For example, != is more general
when iterating through a container, as not all iterator define the <
operator. For example, vector and map would work with != but not <
operator in C++. But I do not mean that != is more general than <
every time nor should it be used in cases like you have shown. To
answer the question for javaAddict, i used != because in a for loop it
might be more general at times, and just thought I would switch it up
a bit.
>>
Also, c++ calls generic types template types.
<<
Yea, but I was talking about generic in a sense of overall not just meta programming, sorry I should have been more clear, again.
Reputation Points: 840
Solved Threads: 594
Senior Poster
Offline 3,864 posts
since Dec 2008