This file contains hidden or 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 <chrono> | |
#include <iostream> | |
// From https://github.com/ericniebler/range-v3 : | |
#include <range/v3/range.hpp> | |
class timer | |
{ | |
private: | |
std::chrono::high_resolution_clock::time_point start_; | |
public: |
This file contains hidden or 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 <vector> | |
#include <utility> | |
#include <iostream> | |
#include <algorithm> | |
#include <range/v3/range.hpp> | |
using namespace ranges; | |
template<typename It> | |
class counted_range : public range_facade<counted_range<It>> | |
{ |
NewerOlder