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 <experimental/tuple> | |
#include <experimental/type_traits> | |
#include <iostream> | |
#include <tuple> | |
#include <type_traits> | |
#include <utility> | |
#include <vrm/pp.hpp> | |
template <typename T> | |
struct type_w |
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 <cassert> | |
#include <type_traits> | |
struct nonesuch { | |
nonesuch() = delete; | |
~nonesuch() = delete; | |
nonesuch(nonesuch const&) = delete; | |
void operator=(nonesuch const&) = delete; | |
}; |
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
a |
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
.title { | |
margin-top: 8px !important; | |
} | |
.tab-bar { | |
height: 30px !important; | |
} | |
.tab { | |
height: 30px !important; |
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 <utility> | |
struct root | |
{ | |
template <typename TNode, typename... TNodes> | |
void start(TNode& n, TNodes&... ns) & | |
{ | |
n.execute(ns...); | |
} | |
}; |
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 <type_traits> | |
#include <experimental/type_traits> | |
template <typename T, typename TVoid = void> | |
struct is_overloaded : std::true_type { }; | |
template <typename T> | |
struct is_overloaded<T, std::void_t<decltype(&std::decay_t<T>::operator())>>: std::false_type { }; | |
struct s0 |
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 <vector> | |
#include <boost/variant.hpp> | |
namespace impl | |
{ | |
struct vnum_wrapper; | |
using varr = std::vector<vnum_wrapper>; // <- indirection here | |
using vnum = boost::variant<int, varr>; |
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
Linux laptop-name 4.7.5-1-ARCH #1 SMP PREEMPT Sat Sep 24 13:04:22 CEST 2016 x86_64 GNU/Linux |
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 <array> | |
#include <atomic> | |
#include "./blockingconcurrentqueue.h" | |
using namespace std::chrono_literals; | |
// global counter | |
// * the program can exit when it reaches 1000 | |
// * incremented by tasks | |
std::atomic<int> ctr{0}; |
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
BasedOnStyle: LLVM | |
AccessModifierOffset: -4 | |
AlignOperands: true | |
AlignEscapedNewlinesLeft: true | |
AlignTrailingComments: true | |
AllowAllParametersOfDeclarationOnNextLine: true | |
AllowShortCaseLabelsOnASingleLine: true | |
AllowShortFunctionsOnASingleLine: false | |
AllowShortIfStatementsOnASingleLine: true | |
AllowShortLoopsOnASingleLine: true |