Skip to content
Commit 93f1e00f authored by Pavithra Barithaya's avatar Pavithra Barithaya Committed by ManojKiran Eda
Browse files

Replace sizeof() with .size()



This change replaces the usage of sizeof() with .size() to
calculate size of arrays and expressions of STL container types.
Using .size() with containers like std::vector, std::array, and
std::string improves code readability and adheres to modern C++
standards. This also helps in clang-tidy checks.

Change-Id: I1e9e6e453a3b9218682098887763a4908f186815
Signed-off-by: default avatarPavithra Barithaya <pavithra.b@ibm.com>
parent ace4e14d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment