Skip to content

Commit

Permalink
Add iterator constructor to IndexedVector
Browse files Browse the repository at this point in the history
Signed-off-by: Vladimír Štill <[email protected]>
  • Loading branch information
vlstill committed Feb 13, 2025
1 parent 80ef07c commit 87aa9b7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ir/indexed_vector.h
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ class IndexedVector : public Vector<T> {
insert(Vector<T>::end(), a.begin(), a.end());
}
explicit IndexedVector(const Vector<T> &a) { insert(Vector<T>::end(), a.begin(), a.end()); }
template<typename It>
explicit IndexedVector(It start, It end) { insert(Vector<T>::end(), start, end); }
explicit IndexedVector(JSONLoader &json);

void clear() {
Expand Down

0 comments on commit 87aa9b7

Please sign in to comment.