This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
template <typename Map> | |
concept is_associative = requires(Map& map, Map::key_type& k) { | |
typename Map::key_type; | |
typename Map::mapped_type; | |
typename Map::value_type; | |
map[k]; | |
}; | |
template <typename Graph> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <thread> | |
#include <mutex> | |
#include <condition_variable> | |
#include <vector> | |
std::mutex mutex; | |
std::condition_variable cv; | |
bool workerThreadsFinished = false; |