/numeric/ublas/vector.hpp&gt;
#include &lt;boost/numeric/ublas/vector_proxy.hpp&gt;
#include &lt;boost/numeric/ublas/io.hpp&gt;

int main () {
    using namespace boost::numeric::ublas;
    vector&lt;double&gt; v (3);
    vector_range&lt;vector&lt;double&gt; &gt; vr (v, range (0, 3));
    for (unsigned i = 0; i &lt; vr.size (); ++ i)
        vr (i) = i;
    std::cout &lt;&lt; vr &lt;&lt; std::endl;
}
</pre>
<h4>Definition</h4>
<p>Defined in the header vector_proxy.hpp.</p>
<h4>Template parameters</h4>
<tabl