PhantomGamesDevelopment / Galactic-2D

Open source engine technology created in C++.
1 stars 1 forks source link

DynArray Iteration #14

Closed Phantom139 closed 9 years ago

Phantom139 commented 9 years ago

Throughout the engine, I have cycles through two formats of iterating through a DynArray instance. One of the such is something along the lines of:

T* tObj = NULL;
for(U32 i = 0; i < arrayInst.size(); i++) {
    tObj = arrayInst[i];
}

The other is this:

for(T* tObj = arrayInst.front(); tObj != arrayInst.back(); tObj++) {

}

This should be standardized one way or the other through the engine.

Phantom139 commented 9 years ago

Applied changes in commit eefd90f.

Closed.