Skip to content

Instantly share code, notes, and snippets.

View mboedigh's full-sized avatar

M3 mboedigh

  • Thousand Oaks
View GitHub Profile
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>
#include <iostream>
#include <thread>
#include <mutex>
#include <condition_variable>
#include <vector>
std::mutex mutex;
std::condition_variable cv;
bool workerThreadsFinished = false;