Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Core » no true Iterator support in Upp???
Re: no true Iterator support in Upp??? [message #28958 is a reply to message #28957] Wed, 29 September 2010 12:12 Go to previous messageGo to previous message
kohait00 is currently offline  kohait00
Messages: 939
Registered: July 2009
Location: Germany
Experienced Contributor
meanwhile:


#define FOREACH(type, var, cont) \
for(int __i = 0, __c = cont.GetCount(), __b; __i < __c; ++__i, __b = 1) \
	for(type& var = cont[__i]; __b; __b = 0)\



...


	Vector<int> vi;
	vi.SetCount(10);
	
	FOREACH(int, ii, vi)
		ii = Random();
	
	FOREACH(int, ii, vi)
		LOG(ii);

[Updated on: Wed, 29 September 2010 12:15]

Report message to a moderator

 
Read Message icon5.gif
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Handle a RGBA* with ImageBuffer
Next Topic: Animate does not really animate
Goto Forum:
  


Current Time: Fri Jul 18 06:39:14 CEST 2025

Total time taken to generate the page: 0.06317 seconds