Skip to content

Commit

Permalink
Prefix size_t with std:: (clang-tidy)
Browse files Browse the repository at this point in the history
Signed-off-by: Krzysztof Bieganski <[email protected]>
  • Loading branch information
kbieganski committed Nov 18, 2024
1 parent 6135fe3 commit db2ef38
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/drt/src/db/dynarray.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ class dynarray
public:
dynarray() = default;
dynarray(std::vector<T>&& data) : data(std::move(data)) {}
dynarray(size_t size) : data(size) {}
T& operator[](size_t idx) { return data[idx]; }
const T& operator[](size_t idx) const { return data[idx]; }
dynarray(std::size_t size) : data(size) {}
T& operator[](std::size_t idx) { return data[idx]; }
const T& operator[](std::size_t idx) const { return data[idx]; }
auto begin() { return data.begin(); }
auto begin() const { return data.begin(); }
auto end() { return data.end(); }
auto end() const { return data.end(); }
size_t size() const { return data.size(); }
std::size_t size() const { return data.size(); }
void clear() { data.clear(); }
T& front() { return data.front(); }
const T& front() const { return data.front(); }
Expand Down

0 comments on commit db2ef38

Please sign in to comment.