Home » Community » U++ community news and announcements » New Value features 
	
		
		
			| New Value features [message #34239] | 
			Sat, 05 November 2011 18:13  | 
		 
		
			
				
				
				  | 
					
						  
						mirek
						 Messages: 14271 Registered: November 2005 
						
					 | 
					Ultimate Member  | 
					 | 
		 
		 
	 | 
 
	
		Working on JSON support in U++, I have decided that Value could have members GetCount and operator[] to directly access assigned ValueArray and ValueMap. 
 
Means that while in past we have to write 
 
Value MyConvert::Format(const Value& v)
{
    ValueMap m = v;
    return String().Cat() << m[FIRST] << ", " << m[SECOND]);
}
 
 
it is now possible to use 
 
Value MyConvert::Format(const Value& v)
{
    return String().Cat() << v[FIRST] << ", " << v[SECOND]);
}
 
		
		
		
 |  
	| 
		
	 | 
 
 
 |   
Goto Forum:
 
 Current Time: Tue Nov 04 12:06:23 CET 2025 
 Total time taken to generate the page: 0.09081 seconds 
 |