| 5548 | return res; |
| 5549 | } |
| 5550 | void init() { |
| 5551 | if (! run_deferred()) |
| 5552 | { |
| 5553 | future_when_all_vector_shared_state::run(this->shared_from_this()); |
| 5554 | return; |
| 5555 | } |
| 5556 | #ifdef BOOST_THREAD_FUTURE_BLOCKING |
| 5557 | this->thr_ = boost::thread(&future_when_all_vector_shared_state::run, this->shared_from_this()); |
| 5558 | #else |
| 5559 | boost::thread(&future_when_all_vector_shared_state::run, this->shared_from_this()).detach(); |
| 5560 | #endif |
| 5561 | } |
| 5562 | |
| 5563 | public: |
| 5564 | template< typename InputIterator> |
nothing calls this directly
no test coverage detected