is_exception

Synopsis

template <class Data>
struct is_exception
{
  // unspecified
};

Description

Metafunction checking if its argument is an exception value. It expects a nullary metafunction as argument.

#include <mpllibs/metamonad/is_exception.hpp>

Expression semantics

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>

Example

typedef is_exception<exception<int>::type> always_true;

[up]