C-Macro-Collections icon indicating copy to clipboard operation
C-Macro-Collections copied to clipboard

Use const when possible

Open duarm opened this issue 2 years ago • 0 comments
trafficstars

Thanks for working on CMC!

What is the nature of this request?

  • Change in source code details (names of variables, functions, parameters, etc)

Is your feature request related to a problem? Please describe.

some functions do not modify the collection, like the _count functions, these should have the collection parameter marked as const

Describe the solution you'd like

functions like _count, _get (except for sorted lists), _index_of, _contains should have the collection marked as const

Not a breaking change as C auto casts to const

duarm avatar Nov 03 '23 04:11 duarm