Vegastrike 0.5.1 rc1  1.0
Original sources for Vegastrike Evolved
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
vsalg Namespace Reference

Functions

template<typename IT , typename F >
void for_each (IT start, IT end, F f)
 

Function Documentation

template<typename IT , typename F >
void vsalg::for_each ( IT  start,
IT  end,
f 
)

Definition at line 111 of file bolt_generic.cpp.

Referenced by CollideArray::flatten(), UpdateBolts::operator()(), and Bolt::UpdatePhysics().

112 {
113  //This way, deletion of current item is allowed
114  //- drawback: iterator copy each iteration
115  while (start != end)
116  f( *start++ );
117 }