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 <algorithm> | |
#include <iterator> | |
#include <functional> | |
template<typename BiDirIt, typename Compare = std::less<> > | |
void Merge_Sort(BiDirIt first, BiDirIt last, Compare comp = Compare {}) { | |
const auto n = std::distance(first, last); | |
if (n > 1) { |
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
// https://www.reddit.com/r/cpp/comments/6caavw/a_tiny_c_thread_pool_welcome_to_star_and_fork/dht7c45/ | |
// | |
// Pool.h | |
// | |
#ifndef Tools_Thread_Pool_h | |
#define Tools_Thread_Pool_h | |
// ================================================================================ Standard Includes |
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 "GPUProgram.hpp" | |
#include "Shader.hpp" | |
#include <glm/gtc/type_ptr.hpp> | |
#include <iostream> | |
#include <array> | |
/***********************************************************************************/ |