PrevUpHomeNext

Hello, World!

To work with numeric bindings, usually you need to do at least two includes: one for the container you're using, and one for some operation you would like to perform.

Please see below.

#include <boost/numeric/bindings/std/vector.hpp>
#include <boost/numeric/bindings/size.hpp>

int main() {
    std::vector<double> a;
    a.push_back( 1.0 );
    a.push_back( 2.0 );
    a.push_back( 3.0 );
    std::cout << bindings::size( a ) << std::endl;
}

Although this isn't that interesting, it illustrates you're bringing in support for standard vectors and the size operation.


PrevUpHomeNext