Boost logo

Boost Users :

From: Mathias Gaunard (mathias.gaunard_at_[hidden])
Date: 2006-11-24 15:44:48


chun ping wang wrote:
> tuples don't work
> cause you can't get to random access index.

huh?
Tuples give random access. However, only if the index is given at
compile time.

> AES word example.
> typedef boost::array<int, 4> word;
>
> std::vector vecOfWord;

std::vector<word> vecOfWord;

>
> // perform some word insertion.

You could do this, for example.
word w = {1, 2, 3, 4};

vecOfWord.push_back(w);


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net