Consistent usage of size() in C++
Open
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 73
- Forks
- 23
- Avg merge
- 21h 17m
- Merged PRs (30d)
- 1
Description
There are several instances of using length() or size() in our C++ codebase (e.g., in LCM). We should standardize on using size(), as it is the preferred convention and aligns with other STL containers like std::vector.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Search the C++ codebase for length() and size() usages, beginning with the LCM code mentioned in the issue. Identify the applicable convention changes, update the relevant instances, and verify that the project still builds and its existing checks pass.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- devtools
- Issue type
- Refactor
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100