Boost logo

Boost :

Subject: [boost] [qvn] Why doesn't QVM use [] or () to access vector and matrix elements?
From: Vicente J. Botet Escriba (vicente.botet_at_[hidden])
Date: 2015-12-09 18:46:17


These operators could be used for views

So instead of

        (m, <>A42) *= 42;

we could have in C++11

        ref(m)(4,2) *= 42;
        ref(m)[4][2) *= 42;

In C++98 these could be less efficient than e.g.

        value<4,2>(m) *= 42;


Boost list run by bdawes at, gregod at, cpdaniel at, john at