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 <functional> | |
#include <iostream> | |
template<class ObjT, class ValueT> | |
using setter_t = std::function<ObjT(ObjT, ValueT)>; | |
template<class ObjT, class ValueT> | |
using getter_t = std::function<ValueT(ObjT)>; | |
template <class ObjT, class ValueT> |
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
//https://godbolt.org/z/tctouH | |
#include <iostream> | |
#include <random> | |
#include <functional> | |
#include <exception> | |
#include <cstring> | |
#include <chrono> | |
using namespace std; |
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
#pragma once | |
#include <type_traits> | |
#include <utility> | |
#include <cstddef> | |
#include <algorithm> | |
#include <typeinfo> | |
#include <iterator> | |
template<class Range> |
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 <iostream> | |
#include <complex> | |
#include <cmath> | |
#include <utility> | |
#include <chrono> | |
#include <array> | |
// std::complex<T>::operators -- not constexpr in C++17 | |
template <class T> |
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 <iostream> | |
#include <utility> | |
namespace impl{ | |
template <int N, int D, int R> | |
constexpr auto FizzBuzz = ""; | |
template <int N> | |
constexpr auto FizzBuzz<N, 15, 0> = "fizzbuzz"; |
NewerOlder