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 <utility> | |
#include <iostream> | |
#include <memory> | |
#include <type_traits> | |
#include <functional> | |
template<class T> | |
using moved_value = std::reference_wrapper<T>; | |
template<class T,class F> |
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
// For motivation see stackoverflow | |
// http://stackoverflow.com/questions/13612832/template-for-referencing-classes-themselves-rather-than-a-class-that-uses-templa | |
#include <iostream> | |
#include <string> | |
#include <typeinfo> | |
#include <cstring> | |
NewerOlder