Skip to content

Instantly share code, notes, and snippets.

View Voultapher's full-sized avatar
🦕
Fight perfection

Lukas Bergdoll Voultapher

🦕
Fight perfection
  • MVTec Software GmbH
  • Munich, Germany
  • 05:23 (UTC +02:00)
View GitHub Profile
#ifndef TUPLEFOLD_CONCEPTS_H_INCLUDED
#define TUPLEFOLD_CONCEPTS_H_INCLUDED
#include <type_traits>
#include <string>
namespace util
{
template<bool CONDITION> struct true_if : std::conditional_t<CONDITION,
@Voultapher
Voultapher / CoroutinesBasics.cpp
Last active November 26, 2016 15:04
CoroutinesBasics
#include <experimental\coroutine>
using namespace std::experimental;
coro_return_type<int> test()
{
int val = 0;
//return {}; // return only valid for subroutines aka functions
// works only if coro_return_type::promis_type specifies:
@Voultapher
Voultapher / .cpp
Last active November 7, 2016 17:02
IncludeOS addr naming
template <int N = 0>
static auto&& ifconfig(
IP4::addr addr,
IP4::addr nmask,
IP4::addr router,
IP4::addr dns = IP4::INADDR_ANY
)
{ ... }
net::Inet4::ifconfig(
@Voultapher
Voultapher / .cpp
Last active October 20, 2016 11:12
Syntax highlight markdown change
#include <iostream>
#include <fstream>
#include <vector>
#include <string>
#include <algorithm>
#include <numeric>
using buffer_t = std::vector<char>;
using lines_t = std::vector<std::string>;