Skip to content

Instantly share code, notes, and snippets.

@s4553711
Created April 13, 2017 08:11
Show Gist options
  • Save s4553711/10ee2167ef3926b89312fb81ab2aafe8 to your computer and use it in GitHub Desktop.
Save s4553711/10ee2167ef3926b89312fb81ab2aafe8 to your computer and use it in GitHub Desktop.
typedef map<int, map<long int, vector<Allele> > >::iterator it_type;
for (it_type it = inputVariantAlleles.begin(); it != inputVariantAlleles.end(); it++) {
cerr << "CK variant input 1 level key:" << it->first << endl;
typedef map<long int, vector<Allele> >::iterator it_type2;
for (it_type2 it2 = it->second.begin(); it2 != it->second.end(); it2++) {
cerr << "CK variant input 2 level key:" << it2->first << endl;
cerr << "CK variant input 2 level value:" << it2->second << endl;
vector<Allele>& inputalleles = it2->second;
for (vector<Allele>::iterator a = inputalleles.begin(); a != inputalleles.end(); ++a) {
Allele& allele = *a;
resultAlleles.push_back(allele);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment