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 <string> | |
#include <iostream> | |
#include <vector> | |
#include <array> | |
#include <set> | |
#include <unordered_set> | |
template<typename T> | |
void printElems(T elems) { | |
std::cout << "[ "; |
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 <boost/asio.hpp> | |
#include <boost/asio/bind_executor.hpp> | |
#include <boost/asio/spawn.hpp> | |
#include <boost/bind.hpp> | |
#include <chrono> | |
#include <random> | |
#include <spdlog/spdlog.h> | |
#include <thread> | |
int32_t next_int() { |
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 <boost/callable_traits.hpp> | |
#include <fmt/format.h> | |
#include <tuple> | |
void increment_int(int a) { fmt::print("{}\n", a + 1); } | |
void increment_double(double a) { fmt::print("{}\n", std::pow(a, 2)); } | |
void increment_both(int a, double b) { | |
auto ia = a + 1; |
OlderNewer