void TranslateAll(const apvector & info, apvector & result) // precondition: info has info.length() entries // info.length() % 3 == 0 // [number of elements is a multiple of 3] // result.length() >= info.length()/3, // i.e., the capacity of result is large enough { int numSequences = info.length()/3; // number of sequences int k; for(k=0; k < numSequences; k++) { result[k] = Translate(info,k*3); } }