コピー構築可能なデータを伝える tbb_exception インターフェイスのサブクラス。
template<typename ExceptionData> class movable_exception;
#include "tbb/tbb_exception.h"
このテンプレートは、任意のコピー構築可能なデータを伝える tbb_exception のサブクラスを簡単に実装する方法を提供します。
namespace tbb {
template<typename ExceptionData>
class movable_exception: public tbb_exception {
public:
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();
};
}
| メンバー | 説明 |
|---|---|
| movable_exception( const ExceptionData& src ) |
src のコピーを含む movable_exception を構築します。 |
| ExceptionData& data() throw() |
戻り値: 含まれるデータへの参照。 |
| const ExceptionData& data() const throw() |
戻り値: 含まれるデータへの const 参照。 |