Skip to content

Commit 349a804

Browse files
committed
remove get_row relative to operator[]
1 parent ab1861d commit 349a804

File tree

1 file changed

+3
-11
lines changed

1 file changed

+3
-11
lines changed

vapid/soa.h

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -68,20 +68,12 @@ namespace vapid {
6868
sort_order_reference_.push_back(size() - 1);
6969
}
7070

71-
auto get_row(size_t row) const {
72-
return get_row_impl(std::index_sequence_for<Ts...>{}, row);
73-
}
74-
75-
auto get_row(size_t row) {
76-
return get_row_impl(std::index_sequence_for<Ts...>{}, row);
77-
}
78-
7971
auto operator[](size_t idx) const {
80-
return get_row(idx);
72+
return get_row_impl(std::index_sequence_for<Ts...>{}, idx);
8173
}
8274

8375
auto operator[](size_t idx) {
84-
return get_row(idx);
76+
return get_row_impl(std::index_sequence_for<Ts...>{}, idx);
8577
}
8678

8779
template <size_t... I>
@@ -136,7 +128,7 @@ namespace vapid {
136128
}
137129
ss << "soa {\n";
138130
for (size_t i = 0; i < num_elements_to_print; ++i) {
139-
const auto t = get_row(i);
131+
const auto t = operator[](i);
140132
ss << "\t";
141133
dump_tuple(ss, t);
142134
ss << std::endl;

0 commit comments

Comments
 (0)