Skip to content

Instantly share code, notes, and snippets.

View makulik's full-sized avatar

Makulik Günther makulik

View GitHub Profile
@makulik
makulik / PredicateLambda.cpp
Last active December 18, 2020 17:42
C++11 lambda predicate syntax sample
#include <iostream>
#include <string>
#include <algorithm>
int main() {
std::string s = "xAAAyyByABCxGxZyIxGyyZI";
std::cout << "Before: '" << s << "'" << std::endl;
#include <iostream>
#include <typeinfo>
using namespace std;
template<typename FalseType, typename TrueType, bool condition>
struct ConditionalTypeSelector
{
typedef void ResultType;
};
@makulik
makulik / BitIndexConverter.hpp
Last active March 10, 2017 11:10
A bitset index converter to convert mask flag values to their corresponding index in a std::bitset
/*
* BitIndexConverter.hpp
*
* Created on: Dec 14, 2013
* Author: user
*/
#ifndef BITINDEXCONVERTER_HPP_
#define BITINDEXCONVERTER_HPP_