24 Nov
2006
24 Nov
'06
8:44 p.m.
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
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);