logoalt Hacker News

ueckeryesterday at 5:24 PM1 replyview on HN

It is cool trick. I already use in my experimental library though ;-) https://github.com/uecker/noplate/blob/main/src/list.h


Replies

eqvinoxyesterday at 6:22 PM

I guess if anyone might know it might be you—do you see any way of doing this for intrusive data structures, embedding the node struct in the data (and as side effect supporting an object to be on multiple containers) rather than the data in the node like you're doing there?

show 1 reply