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 "tasklist.hpp" | |
#include <iostream> | |
#include <string> | |
template<class T> | |
T *create_task(); | |
tasklist::storage *delete_task(tasklist::arstorage); | |
struct a0 : public tasklist::task{ |
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 <set> | |
#include <boost/variant.hpp> | |
#include <boost/any.hpp> | |
template<class T> | |
struct multiplex_less; | |
template<class T> | |
class set : public std::set<boost::variant<T, set<T>>, multiplex_less<T>>{ | |
public: | |
set() = default; |
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 <memory> | |
#include <list> | |
#include <tuple> | |
#include <string> | |
#include <algorithm> | |
using namespace std; | |
struct t{ | |
public: |
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
// em++ -std=c++11 -s NO_EXIT_RUNTIME=1 -s ASYNCIFY=1 -s DISABLE_EXCEPTION_CATCHING=0 trs.cpp --bind -o trs.js -O2 | |
#include <algorithm> | |
#include <vector> | |
#include <tuple> | |
#include <functional> | |
#include <utility> | |
#include <memory> | |
#include <map> | |
#include <cmath> |
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
// TypeScriptのめんどくさいところ. | |
class A{ | |
value: number; | |
// 引数の型が違うコンストラクタを分けて記述できない. | |
// constructor(){ ... } | |
// constructor(other: A){ ... } | |
// 仕方が兄のでvalue?: anyを列挙してコンストラク内部でinstanceofチェックをする. | |
constructor(_other?: any){ |
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 <algorithm> | |
#include <vector> | |
#include <tuple> | |
#include <functional> | |
#include <utility> | |
#include <memory> | |
#include <map> | |
#include <boost/coroutine2/all.hpp> | |
#include <boost/variant.hpp> |