src/cx/map.h

changeset 550
89b2a83728b1
parent 549
d7f0b5a9a985
child 551
2946e13c89a4
equal deleted inserted replaced
549:d7f0b5a9a985 550:89b2a83728b1
86 */ 86 */
87 __attribute__((__nonnull__)) 87 __attribute__((__nonnull__))
88 int (*put)( 88 int (*put)(
89 CxMap *map, 89 CxMap *map,
90 CxDataPtr key, 90 CxDataPtr key,
91 void const *value 91 void *value
92 ); 92 );
93 93
94 /** 94 /**
95 * Returns an element. 95 * Returns an element.
96 */ 96 */
103 /** 103 /**
104 * Removes an element. 104 * Removes an element.
105 */ 105 */
106 __attribute__((__nonnull__, __warn_unused_result__)) 106 __attribute__((__nonnull__, __warn_unused_result__))
107 void *(*remove)( 107 void *(*remove)(
108 CxMap const *map, 108 CxMap *map,
109 CxDataPtr key 109 CxDataPtr key
110 ); 110 );
111 111
112 /** 112 /**
113 * Iterator over the key/value pairs. 113 * Iterator over the key/value pairs.
175 */ 175 */
176 __attribute__((__nonnull__)) 176 __attribute__((__nonnull__))
177 static inline int cxMapPut( 177 static inline int cxMapPut(
178 CxMap *map, 178 CxMap *map,
179 CxDataPtr key, 179 CxDataPtr key,
180 void const *value 180 void *value
181 ) { 181 ) {
182 return map->cl->put(map, key, value); 182 return map->cl->put(map, key, value);
183 } 183 }
184 184
185 /** 185 /**

mercurial