This file contains 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
#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, |
This file contains 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\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: |
This file contains 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
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( |
This file contains 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 <fstream> | |
#include <vector> | |
#include <string> | |
#include <algorithm> | |
#include <numeric> | |
using buffer_t = std::vector<char>; | |
using lines_t = std::vector<std::string>; |
NewerOlder