microsoft / microsoft/jbpf

Consistent usage of size() in C++

Open
#126 0 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.