11.8. terminate()  unexpected()                                  __ ______321

exit(1) ;

}

catch( ... )   //    
{

  "  Ѩ!"  endl;

abort() ;

}

  ( ... ) ,    
.  ,      , 
       .

    throw.    -
    t ry.     ,  -
   ,    try.    
      ,   -
.     ,    try.

11.7.  

       -
     :

 _ throw (_)

 _    ,     throw
 .        -
   .

  ,  ,      -
 throw ( ,  ).

void foo() throw(int, over_flow) ;

void noex(int i) throw();

   , ,    
  .    -
     .    unexpected ().

11.8. terminate()  unexpected()

   terminate () ,    -
   , ,    .  -
   abort ().      -
   .   set_terminate () 
  -  ;    . -
     except  except.h.

   unexpectedt) ,  -
  ,       -
.     terminate ().   -
 set_terminate (),   .