C++ std::map equivalent? (An in-order iterable associative container)
Dicebot via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Sun May 4 15:26:56 PDT 2014
On Sunday, 4 May 2014 at 22:25:36 UTC, bearophile wrote:
> Dicebot:
>
>> What benefits this gives over definining distinct struct?
>> Sounds like unnecessary complication for me.
>
> See the code in my precedent post, what do you think about it?
>
> Bye,
> bearophile
Change
alias Two = Tuple!(string,"str", int, "bob");
to
struct Two
{
string str;
int bob;
}
and it will become much more readable while staying semantically
equivalent
More information about the Digitalmars-d-learn
mailing list