Problem I would like to write a function that computes a cartesian product of two tuples in C++17 (the tuples […]
Tag: c++17
Composable by-member comparison
Problem Motivation Quite often, I find myself creating types that must be compared memberwise. For example, consider this simple Person: […]
Class ISBN – checks for valid ISBN 13
Problem I am at the moment trying to grasp multi-file programming instead of one big main.cpp. The class I wrote […]
Implementing and benchmarking Radix Sort on unsigned integers
Problem Introduction I implemented a restricted version of the sorting algorithm, the one that works only with unsigned integers. I […]
Basic substring algorithms + auxiliary string-generating functions
Problem Summary: a bunch of algorithms to find if particular substring exists in the string. Meanwhile there’s a lot to […]
Project Euler 22: Names scores by Loki 2
Problem Alternative to Project Euler 22 solution. Project Euler 22 Slightly more brittle than the original. This code depends on […]
Gather all IP addresses of a host as a vector
Problem I have the following working code to get IPv4/v6 addresses from host names: #include <array> using std::array; #include <iostream> […]
C++ Building Parse Tree with Boost and Modern C++
Problem I am writing a parser. To build up the tree, I need to find the correct type for my […]
Provide one file where all error messages are defined in c++ [closed]
Problem Closed. This question is off-topic. It is not currently accepting answers. Code not implemented or not working as intended: […]
Aho-Corasick C++17 implementation
Problem Recently I implemented the algorithm, that can find all the patterns which may contain “?” as “any character”. For […]