Home » Community » Newbie corner » Any tuple examples?
Re: Any tuple examples? [message #29779 is a reply to message #29772] |
Tue, 16 November 2010 10:08   |
|
Hi Jeff
This should be what you are looking for:#include <Core/Core.h>
using namespace Upp;
CONSOLE_APP_MAIN{
String s1="Hello";
String s2="world";
Tuple2<String,String> a=MakeTuple(s1,s2);
// or directly initialize:
Tuple2<String,int> b={"Hi",5};
}
MakeTuple() takes 2,3 or 4 arguments of any type, producing corresponding Tuple.
Best regards,
Honza
|
|
|
Goto Forum:
Current Time: Sun Aug 24 10:46:17 CEST 2025
Total time taken to generate the page: 0.03809 seconds
|