--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/docs/Writerside/topics/list.h.md Thu Jan 23 01:33:36 2025 +0100 @@ -0,0 +1,10 @@ +# list.h + +This header defines a common interface for all list implementations. + +UCX already comes with two common list implementations (linked list and array list) that should cover most use cases. +But if you feel the need to implement an own list, the only thing you need to do is to define a struct with a +`struct cx_list_s` as first member, and set an appropriate list class that implements the functionality. +It is strongly recommended that this class is shared among all instances of the same list type, because otherwise +the `cxListCompare` function cannot use the optimized implementation of your class and will instead fall back to +using iterators to compare the contents element-wise.