Boost C++ Libraries of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of Boost. Click here to view this page for the latest version.
C++ Boost


The BasicMatrix concept provides a minimalist interface for accessing elements from a 2 dimensional table of values.

Refinement of



{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.

Associated Types


Valid Expressions

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.

Complexity guarantees

Element access is constant time.

Concept Checking Class

  template <class M, class I, class V>
  struct BasicMatrixConcept
    void constraints() {
      V& elt = A[i][j];
    void const_constraints(const M& A) {
      const V& elt = A[i][j];
    M A;
    I i, j;

Copyright © 2000-2001 Jeremy Siek, Indiana University (