Skip to content

Commit b581486

Browse files
authored
Merge pull request #508 from dcdillon/patch-1
Added const_iterator to VectorBase
2 parents 96f36a1 + 33be1d0 commit b581486

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

inst/include/Rcpp/vector/VectorBase.h

+2
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,8 @@ class VectorBase : public traits::expands_to_logical__impl<RTYPE> {
135135
R_xlen_t index;
136136
} ;
137137

138+
typedef iterator const_iterator;
139+
138140
inline iterator begin() const { return iterator(*this, 0) ; }
139141
inline iterator end() const { return iterator(*this, size() ) ; }
140142

0 commit comments

Comments
 (0)