LWN.net Logo

Generic red-black trees

Generic red-black trees

Posted Jun 7, 2012 8:03 UTC (Thu) by rvfh (subscriber, #31018)
Parent article: Generic red-black trees

> typedef int (rb_cmp_t) (struct rb_node *l, struct rb_node *r);

Why not typedef int (rb_cmp_t) (const struct rb_node *l, const struct rb_node *r); ?

Same for search function...


(Log in to post comments)

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds