Providing a function returning the number of rows is useful for me - I can format the table's rows at once after the table is built according to the number of rows, instead of setting a counter aside. I also saw that the size() function is already provided in TableInternal, so I think just returning the return value of table_->size() is fine.
Since there is no test, here's the testing code that I used to test the feature after I implemented it:
Providing a function returning the number of rows is useful for me - I can format the table's rows at once after the table is built according to the number of rows, instead of setting a counter aside. I also saw that the
size()
function is already provided inTableInternal
, so I think just returning the return value oftable_->size()
is fine.Since there is no test, here's the testing code that I used to test the feature after I implemented it:
Also runs
clang-format
script intable.hpp
file.