Home » Community » U++ community news and announcements » New Value features
New Value features [message #34239] |
Sat, 05 November 2011 18:13 |
|
mirek
Messages: 13975 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: Sun Apr 28 22:19:40 CEST 2024
Total time taken to generate the page: 0.04485 seconds
|