MCPcopy Create free account
hub / github.com/bshoshany/thread-pool / valid

Method valid

include/BS_thread_pool.hpp:509–515  ·  view source on GitHub ↗

* @brief Check if all the futures stored in this `BS::multi_future` are valid. * * @return `true` if all futures are valid, `false` if at least one of the futures is not valid. */

Source from the content-addressed store, hash-verified

507 * @return `true` if all futures are valid, `false` if at least one of the futures is not valid.
508 */
509 [[nodiscard]] bool valid() const noexcept
510 {
511 bool is_valid = true;
512 for (const std::future<T>& future : *this)
513 is_valid = is_valid && future.valid();
514 return is_valid;
515 }
516
517 /**
518 * @brief Wait for all the futures stored in this `BS::multi_future`.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected