Archived
This forum has been archived. Please start a new discussion on GitHub.
Ordering method for slice dictionary mapping
akovac
in Help Center
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
