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

Comments

  • bernard
    bernard Jupiter, FL
    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,
    Bernard
  • Hi Bernard,

    clear, thanks for your reply!

    Best regards,
    Alen