SImple C++ code to D
bearophile via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Tue Jul 15 09:04:26 PDT 2014
Alexandre:
> map<string, Address> syms;
If you don't need the key ordering then use a built-in
associative array:
Address[string] syms;
Otherwise use a RedBlackTree from std.container.
> vector<pair<DWORD, Address>> values;
> vector<pair<DWORD, shared_ptr<DWORD>>> addrs;
Tuple!(DWORD, Address)[] values;
Tuple!(DWORD, DWORD*)[] addrs;
Tuple and tuple are in std.typecons.
Bye,
bearophile
More information about the Digitalmars-d-learn
mailing list