Skip to content

Use const when possible #35

Description

@duarm

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions