Guest User

Untitled

a guest
May 25th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.50 KB | None | 0 0
  1. int poc = 0;
  2.     typename map<Key, map<Key, map<Key, Value > > >::const_iterator it1;
  3.     typename map<Key, map<Key, Value > >::const_iterator it2;
  4.     typename map<Key, Value >::const_iterator it3;
  5.     for (it1 = this->begin(); it1 != this->end(); it1++) {
  6.         for (it2 = it1->second.begin(); it2 != it1->second.end(); it2++) {
  7.             if (it2->first == kluc2) {
  8.                 for (it3 = it2->second.begin(); it3 != it2->second.end(); it3++) {
  9.                     if (it3->first == kluc3) {
  10.                         poc++;
  11.                     }
  12.                 }
  13.             }
  14.         }
  15.     }
  16.     return poc;
Add Comment
Please, Sign In to add comment