Hi I have a program that deals alot with vectors and indexes of the elements of these vectors, and I was wondering:
- is there a difference between
uint
and unsigned int
- which is better to use one of the above types or just use
int
as I read some people say compiler does handle int values more efficiently, but if I used int
I will have to check always for negative idxs which is pain.
- do you think iterators to be better? is it more efficient than normal indexing
vectorx[idx]
?
p.s the software will handle large data processes and good performance is a must have requirement
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…