# Iterating over CxxWrap-ed vector

**URL:** <https://discourse.julialang.org/t/iterating-over-cxxwrap-ed-vector/21576>\
**Category:** New to Julia\
**Tags:** cxx, cxxwrap\
**Created:** [March 7, 2019, 3:14pm UTC](https://discourse.julialang.org/t/iterating-over-cxxwrap-ed-vector/21576 "2019-03-07T15:14:24Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![barche](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/barche/32/79_2.png) [@barche](https://discourse.julialang.org/u/barche)\
**Post date:** [March 8, 2019, 6:43pm UTC](https://discourse.julialang.org/t/iterating-over-cxxwrap-ed-vector/21576/10 "2019-03-08T18:43:21Z")

</div>

You can make the vector a parametric type, that should avoid the code duplication. The parametric example should show how to do this.

For what it’s worth, built-in support for std::vector (and others) is on my todo list, but unfortunately my time for working on it has been limited lately.

---

_[View the full topic](https://discourse.julialang.org/t/iterating-over-cxxwrap-ed-vector/21576)._
