src/cx/linked_list.h

changeset 647
2e6e9d9f2159
parent 639
309e8b08c60e
child 662
d0d95740071b
equal deleted inserted replaced
646:dfd0403ff8b6 647:2e6e9d9f2159
44 #ifdef __cplusplus 44 #ifdef __cplusplus
45 extern "C" { 45 extern "C" {
46 #endif 46 #endif
47 47
48 /** 48 /**
49 * Set this flag to true, if you want to disable the use of SBO for
50 * linked list swap operations.
51 */
52 extern bool CX_DISABLE_LINKED_LIST_SWAP_SBO;
53
54 /**
49 * Allocates a linked list for storing elements with \p item_size bytes each. 55 * Allocates a linked list for storing elements with \p item_size bytes each.
50 * 56 *
51 * @remark Elements added to the list are copied, therefore a possible destructor 57 * @remark Elements added to the list are copied, therefore a possible destructor
52 * MUST NOT free the memory pointed to by its argument. 58 * MUST NOT free the memory pointed to by its argument.
53 * 59 *

mercurial