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 » Community » U++ community news and announcements » findarg
findarg [message #37646] Tue, 30 October 2012 13:33 Go to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
I have found I am missing some simple template function to determine that some value is in some set defined as further arguments of function, so here it goes:

findarg(4, 1, 2, 3) == -1

findarg(4, 3, 4) == 1

(defined for 2 up to 40 arguments).

Mirek

[Updated on: Wed, 31 October 2012 19:12]

Report message to a moderator

Re: findarg [message #37664 is a reply to message #37646] Wed, 31 October 2012 15:01 Go to previous message
zsolt is currently offline  zsolt
Messages: 693
Registered: December 2005
Location: Budapest, Hungary
Contributor
This is very cool Smile
Previous Topic: FreeBSD port patch for release 12.10 (SVN 5485)
Next Topic: U++ 5485 released
Goto Forum:
  


Current Time: Thu Mar 28 18:20:54 CET 2024

Total time taken to generate the page: 0.01135 seconds