3rdParty/boost/1.78.0/libs/graph/doc/BasicMatrix.html
The BasicMatrix concept provides a minimalist interface for accessing elements from a 2 dimensional table of values.
none
| {M,I,V} | The matrix, index, and values types that together model the BasicMatrix concept. | | A | An object of type M. | | i, j | Objects of type I. |
none
| A[i][j] | Returns a reference to the element object stored at index (i,j)
Return type: V& for mutable A or const V& for constant A. |
Element access is constant time.
template <class M, class I, class V>
struct BasicMatrixConcept
{
void constraints() {
V& elt = A[i][j];
const_constraints(A);
ignore_unused_variable_warning(elt);
}
void const_constraints(const M& A) {
const V& elt = A[i][j];
ignore_unused_variable_warning(elt);
}
M A;
I i, j;
};
| Copyright © 2000-2001 | Jeremy Siek, Indiana University ([email protected]) |