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 <iostream> | |
int main() | |
{ | |
std::cout << "Hello World" << std::endl; | |
} |
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
namespace std { | |
template<class E> class initializer_list { | |
public: | |
typedef E value_type; | |
typedef const E& reference; | |
typedef const E& const_reference; | |
typedef size_t size_type; | |
typedef const E* iterator; | |
typedef const E* const_iterator; |
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 <iostream> | |
#include "continuation.hpp" | |
void amb1_f(continuation& cont) | |
{ | |
cont.suspend(1); | |
cont.suspend(2); | |
cont.suspend_break(3); | |
} |
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 <iostream> | |
#include "amb.hpp" | |
void amb1_f(amber& cont) | |
{ | |
cont.suspend(1); | |
cont.suspend(2); | |
cont.suspend_break(3); | |
} |
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 <iostream> | |
#include <string> | |
struct ignore_param { | |
template <class... Args> | |
ignore_param(Args&&...) {} | |
}; | |
template <class F> | |
void foo(F&& 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
aaa | |
bbb | |
ccc |
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 <iostream> | |
#include <fstream> | |
#include <boost/bind.hpp> | |
#include <boost/ref.hpp> | |
#include <boost/asio.hpp> | |
#include <boost/asio/steady_timer.hpp> | |
#include <boost/utility/value_init.hpp> | |
namespace asio = boost::asio; | |
namespace chrono = boost::chrono; |
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 <iostream> | |
#include <fstream> | |
#include <boost/bind.hpp> | |
#include <boost/ref.hpp> | |
#include <boost/asio.hpp> | |
#include <boost/asio/steady_timer.hpp> | |
#include "continuation.hpp" | |
namespace asio = boost::asio; | |
namespace chrono = boost::chrono; |
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 <iostream> | |
#include <boost/graph/adjacency_list.hpp> | |
#include <boost/graph/dijkstra_shortest_paths.hpp> | |
#include <boost/assign/list_of.hpp> | |
#include <functional> | |
#include "continuation.hpp" | |
typedef boost::adjacency_list<boost::listS, boost::vecS, boost::directedS, | |
boost::no_property, boost::property<boost::edge_weight_t, int> > Graph; | |
typedef std::pair<int, int> Edge; |
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 <iostream> | |
#include <vector> | |
#include <string> | |
#include <boost/graph/adjacency_list.hpp> | |
#include <map> | |
#include <stdexcept> | |
#include <boost/foreach.hpp> | |
#include <boost/optional.hpp> |
OlderNewer