Posted By

shernshiou on 07/29/11


Tagged

define


Versions (?)

Iterator


 / Published in: C++
 

  1. #define REP(i,n) for((i)=0;(i)<(int)(n);(i)++)
  2. #define foreach(c,itr) for(__typeof((c).begin()) itr=(c).begin();itr!=(c).end();itr++)

Report this snippet  

You need to login to post a comment.