June 08, 2006 Free tuples for anyone ! No adware included. | ||||
---|---|---|---|---|
| ||||
Attachments: | Hey there, I wrote a nifty tuple/list template and I thought I'd share it with the community just in case anyone needed something like this.
Q: What can this tuple template do that thousands of other implementations can't ?
A: It can be specialized for any number of types thru recursion and its fields are accessed by a templated alias, instead of a function template, thus allowing other access patterns than just setting and getting its fields /+ see the usage examples +/. And on top of that... it's very clean implementation-wise :)
--
Tomasz Stachowiak /+ a.k.a. h3r3tic +/
|
Copyright © 1999-2021 by the D Language Foundation