movable_exception ExceptionData



This feature is deprecated and will be removed in the future.

Subclass of tbb_exception interface that supports propagating copy-constructible data.


template<typename ExceptionData> class movable_exception;


#include "tbb/tbb_exception.h"


This template provides a convenient way to implement a subclass of tbb_exception that propagates arbitrary copy-constructible data.


 namespace tbb {
                   template<typename ExceptionData>
                    class movable_exception: public tbb_exception {
                    movable_exception( const ExceptionData& src );
                    movable_exception( const movable_exception& src )throw();
                    ~movable_exception() throw();
                    movable_exception& operator=( const movable_exception& src );
                    ExceptionData& data() throw();
                    const ExceptionData& data() const throw();
                    movable_exception* move() throw();
                    void destroy() throw();
                    void throw_self();
                    const char* name() const throw();
                    const char* what() const throw();
The following table provides information on the additions that movable_exception makes to tbb_exception. Section tbb_exception describes the rest of the interface.
Member Description
movable_exception( const ExceptionData& src )

Construct movable_exception containing copy of src.

ExceptionData& data() throw()

Returns: Reference to contained data.

const ExceptionData& data() const throw()

Returns: Const reference to contained data.

For more complete information about compiler optimizations, see our Optimization Notice.