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 <type_traits> | |
using namespace std; | |
struct Car {}; | |
void foo(const int&) { cout << "Ohh :(\n"; } | |
void foo(int&&) { cout << "Ahh :)\n"; } | |
void foo(const Car&) { cout << "Beep :(\n"; } |
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 <range/v3/all.hpp> | |
#include <iostream> | |
#include <iterator> | |
#include <random> | |
#include <iomanip> | |
using namespace ranges::v3; | |
std::random_device random_device; | |
std::mt19937 engine{random_device()}; |