Skip to content

Instantly share code, notes, and snippets.

// generated with `unosolo`
// https://github.com/SuperV1234/unosolo
#pragma once
#include <functional>
#include <utility>
#include <type_traits>
#include <iostream>
template <typename TSignature>
class function_ref;
template <typename TReturn, typename... TArgs>
class function_ref<TReturn(TArgs...)> final
#include <type_traits>
#include <utility>
#ifdef __clang__
namespace std
{
template <typename T, typename... Ts>
using is_invocable = std::is_callable<T(Ts...)>;
}
#endif
// generated with `unosolo`
// https://github.com/SuperV1234/unosolo
#pragma once
#include <utility>
#ifndef FWD
// generated with `unosolo`
// https://github.com/SuperV1234/unosolo
#pragma once
#include <utility>
#ifndef FWD
// generated with `unosolo`
// https://github.com/SuperV1234/unosolo
#pragma once
#include <utility>
#ifndef FWD
@-moz-document domain("githubusercontent.com"), regexp("^https?://((gist|guides|help|raw|status|developer)\\.)?github\\.com((?!generated_pages/preview).)*$") {
/*! Github Dark Theme v1.17.33 (2017-06-19) *//*
* https://github.com/StylishThemes/GitHub-Dark
* http://userstyles.org/styles/37035
* License: https://creativecommons.org/licenses/by-sa/4.0/
*/
/* AGENT_SHEET */
body {
background-color: #222 !important;
background-image: none !important;
@-moz-document domain("serverfault.com"), domain("superuser.com"), domain("stackapps.com"), domain("mathoverflow.net"), domain("askubuntu.com"), regexp("^https?://((chat|meta|es|ja|pt|ru)\\.)*stackoverflow\\.com.*"), regexp("^https?://((?!(www|area51|gaming)).*\\.)?stackexchange\\.com.*") {
/***************************************************************
Stack Overflow Dark v2.10.3 (2017-06-15)
https://github.com/StylishThemes/StackOverflow-Dark
http://userstyles.org/styles/35345
** Will apply to almost all Stack Exchange Sites **
Except:
* Area 51 (area51.stackexchange.com)
* Gaming (gaming.stackexchange.com)
#include <algorithm>
#include <chrono>
#include <iostream>
#include <numeric>
#include <sstream>
#include <string>
#include <vector>
#define FWD(...) ::std::forward<decltype(__VA_ARGS__)>(__VA_ARGS__)
#include <iostream>
#include <vector>
#include <tuple>
namespace foo
{
template <typename T>
struct print final
{
const T& _x;