test/bench0.cpp
int g(const int i)
{
 static int nums[] = { 1, 2, 3, 4, 5 };
 static int n = 0;

 if(0 == i)
  throw std::exception();

 return n++, n %= sizeof(nums), n * i;
}
// throws when value is 0:
throws when value is 0.
throws when value is 0 .
int g(const int i)
{
 static int nums[] = { 1, 2, 3, 4, 5 };
 static int n = 0;
 if(0 == i)
  throw std::exception();
 return n++, n %= sizeof(nums), n * i;
}
int g ( const int i ) { static int nums [ ] = { 1 , 2 , 3 , 4 , 5 } ; static int n = 0 ; if ( 0 == i ) throw std :: exception ( ) ; return n ++ , n %= sizeof ( nums ) , n * i ; }
throws when value is 0:
throws when value is 0 :