template <class Data>
struct is_exception
{
// unspecified
};
Metafunction checking if its argument is an exception value. It expects a nullary metafunction as argument.
#include <mpllibs/metamonad/is_exception.hpp>
For any d
class the following evaluates to true
is_exception<exception<d>>
For any c
class, that is not an instance of the exception
template, the following evaluates to true
boost::mpl::not_<is_exception<c>::type>
typedef is_exception<exception<int>::type> always_true;
Copyright Abel Sinkovics (abel at elte dot hu) 2011. Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt