Archived
This forum has been archived. Please start a new discussion on GitHub.
Ordering method for slice dictionary mapping
Hello,
Is it possible to supply metadata to slice dictionary declaration to specify ordering type. I would like to reuse Ice defined structures in my application, so I'm wondering if something like this is supported:
struct PriceKey {
int intPart;
int decPart;
};
["cpp:type:std::map<PriceKey, Data, std::greater<PriceKey> >"]
dictionary<PriceKey, Data> BidMap;
["cpp:type:std::map<PriceKey, Data, std::less<PriceKey> >"]
dictionary<PriceKey, Data> AskMap;
Thanks,
Alen
Is it possible to supply metadata to slice dictionary declaration to specify ordering type. I would like to reuse Ice defined structures in my application, so I'm wondering if something like this is supported:
struct PriceKey {
int intPart;
int decPart;
};
["cpp:type:std::map<PriceKey, Data, std::greater<PriceKey> >"]
dictionary<PriceKey, Data> BidMap;
["cpp:type:std::map<PriceKey, Data, std::less<PriceKey> >"]
dictionary<PriceKey, Data> AskMap;
Thanks,
Alen
0
Comments
-
Hi Alen,
Welcome to our forums!
This custom mapping for dictionaries in C++ would be useful, however, I am not sure when we'll add it to our software.
Best regards,
Bernard0 -
Hi Bernard,
clear, thanks for your reply!
Best regards,
Alen0