C++ case declaration?
I am trying to adapt a digital electronics problem to a C++ STL based program.

Originally I have 4 inputs C1, C2, C3, C4. This means I have a total of 16 combinations:
0000
0001
.
.
.
1111

I have a multimap defined by 

    typedef std::pair<int, int> au_pair; //vertices
    typedef std::multimap<int, int> au_map;
    typedef au_map::iterator It_au;

I want to simulate my algorithm for 16 cases such that `au_map.size()=4` and I set 

    for(It_au it = a_map.begin(); it != a_map.end(); it++)
    {
      //set 1st value of the map as “0”, set 2nd value = “0”, 3rd value as “0”, 4th value as “0”
      
      //simulate algorithm
      
      //set 1st value of the map as “0”, set 2nd value = “0”, 3rd value as “0”, 4th value as “1”
      //simulate
      
      .........
        //set 1st value of the map as “1”, set 2nd value = “1”, 3rd value as “1”, 4th value as “1”
      
      //std::cout << it->first << " : " << it->second << std::endl;
    }

	

C++ case declaration?
===

I am trying to adapt a digital electronics problem to a C++ STL based program.

Originally I have 4 inputs C1, C2, C3, C4. This means I have a total of 16 combinations:
0000
0001
.
.
.
1111

I have a multimap defined by 

    typedef std::pair<int, int> au_pair; //vertices
    typedef std::multimap<int, int> au_map;
    typedef au_map::iterator It_au;

I want to simulate my algorithm for 16 cases such that `au_map.size()=4` and I set 

    for(It_au it = a_map.begin(); it != a_map.end(); it++)
    {
      //set 1st value of the map as “0”, set 2nd value = “0”, 3rd value as “0”, 4th value as “0”
      
      //simulate algorithm
      
      //set 1st value of the map as “0”, set 2nd value = “0”, 3rd value as “0”, 4th value as “1”
      //simulate
      
      .........
        //set 1st value of the map as “1”, set 2nd value = “1”, 3rd value as “1”, 4th value as “1”
      
      //std::cout << it->first << " : " << it->second << std::endl;
    }

	
