task_handle テンプレート・クラス

概要

structured_task_group クラスとともに関数オブジェクトをラップするために使用されるテンプレート・クラス。

説明

task_handle クラスは、主に structured_task_group クラスとともに使用されます。統一性のために、task_group クラスでも task_handle と同じ引数を使用できます。

メンバー

template<typename Func>
class task_handle {
public:
    task_handle( const Func& );
    task_handle( Func&& ); // C++11 以降でサポート
    void operator()() const;
};

関連情報