Skip to content

Instantly share code, notes, and snippets.

@1uc
1uc / sfinae.cpp
Last active November 19, 2018 18:47
#include <iostream>
#include <map>
#include <string>
#include <type_traits>
#include <utility>
using std::declval;
// check that two expression make sense:
// a) m[key]
// b) m.find(key) != m.end()