Skip to content

Instantly share code, notes, and snippets.

@splinterofchaos
splinterofchaos / fmap.cpp
Created October 26, 2012 18:02
Fmap in C++
#include <memory>
#include <utility>
#include <iostream>
#include <algorithm>
#include <iterator>
struct sequence_tag {};
struct pointer_tag {};
template< class X >