diff --git a/index.html b/index.html index d77a197..370b167 100644 --- a/index.html +++ b/index.html @@ -9,9 +9,8 @@

Boost Utility Library

-

The Boost Utility Library isn't really a single library at all. It is just - a collection for components too small to be called libraries in their own - right.

+

The Boost Utility Library isn't really a single library at all. It is just a + collection for components too small to be called libraries in their own right.

But that doesn't mean there isn't useful stuff here. Take a look:

base_from_member
@@ -20,11 +19,12 @@ compressed_pair.htm
operators.htm
tie
+ throw_exception.html
utility.htm


Revised - + 07 May, 2002

 

diff --git a/throw_exception.html b/throw_exception.html new file mode 100644 index 0000000..bba2c5c --- /dev/null +++ b/throw_exception.html @@ -0,0 +1,58 @@ + + + + Boost: throw_exception.hpp documentation + + + + + + + + + + + +
+ c++boost.gif (8819 bytes) + +

throw_exception.hpp

+
 
+

+ The header <boost/throw_exception.hpp> defines the + helper function boost::throw_exception. It is intended to be + used in Boost libraries that need to throw exceptions, but support + configurations and platforms where exceptions aren't available, as indicated by + the presence of the BOOST_NO_EXCEPTIONS + configuration macro. +

+

When BOOST_NO_EXCEPTIONS is not defined, boost::throw_exception(e) + is equivalent to throw e. Otherwise, the function is left undefined, + and the user is expected to supply an appropriate definition.

+

Synopsis

+
+namespace boost
+{
+
+#ifdef BOOST_NO_EXCEPTIONS
+
+void throw_exception(std::exception const & e); // user defined
+
+#else
+
+template<class E> void throw_exception(E const & e)
+{
+    throw e;
+}
+
+#endif
+
+}
+
+


+ Copyright © 2002 by Peter Dimov. Permission to copy, use, modify, sell and + distribute this document is granted provided this copyright notice appears in + all copies. This document is provided "as is" without express or implied + warranty, and with no claim as to its suitability for any purpose.

+ +