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

Function all_flags_equal

tests/BS_thread_pool_test.cpp:501–508  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

499 */
500template <typename T, typename V>
501bool all_flags_equal(const T& flags, const V& value)
502{
503 return std::all_of(flags.begin(), flags.end(),
504 [&value](const auto& flag)
505 {
506 return flag == value;
507 });
508}
509
510/**
511 * @brief Check if all of the flags in a container are set.

Callers 4

check_loop_no_returnFunction · 0.85
check_blocks_no_returnFunction · 0.85
check_sequence_no_returnFunction · 0.85
check_get_poolFunction · 0.85

Calls 1

endMethod · 0.80

Tested by

no test coverage detected