cher-nov / Gena

Generic pseudo-templated containers for C. Written entirely in C89 with design inspired by the C++ STL. /// DOCS ARE SLIGHTLY OUTDATED, PROJECT IS STABLE AND STILL BEING DEVELOPED
https://habr.com/ru/post/324210/
Do What The F*ck You Want To Public License
89 stars 6 forks source link

Return array types as pointers to their first elements #10

Closed cher-nov closed 7 years ago

cher-nov commented 7 years ago

This will make array access much more convenient. For example:

gmap_string_find( map_string, "array1" )[10]

instead of

(*gmap_string_find( map_string, "array1" ))[10]

This will need to partially rewrite current support of array types in templates.

cher-nov commented 7 years ago

Implemented in 34669d53cec24a7332fd4cb72c3c48030737a530.