Macro

Revision en2, by rahul_1234, 2015-06-29 15:20:55

Can someone explain me the macro:

#define tr(c,it) for( typeof(c.begin()) it=c.begin(); it!=c.end(); ++it )

Plz stress on use of typeof and why this macro can be used for all the containers.

Tags macros

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English rahul_1234 2015-06-29 15:20:55 2 Tiny change: ' ++it )_\n__\nPlz stre' -
en1 English rahul_1234 2015-06-29 15:19:26 201 Initial revision (published)