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> | |
#include <utility> | |
#include <boost/format.hpp> | |
template<typename T> | |
boost::format& apply_format_args(boost::format& form, T&& t) | |
{ | |
return form % std::forward<T>(t); | |
} |
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
/* | |
* Usage: | |
* void test(string s, int n) { } | |
* cout << function_traits<decltype(test)>::arity << endl; //< Prints 2. | |
* function_traits<decltype(test)>::arg<0>::type s; //< Declares a string. | |
* function_traits<decltype(test)>::arg<1>::type n; //< Declares an int. | |
*/ | |
namespace utility { | |
template<typename FunctionType> |
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
#pragma once | |
#include <memory> | |
#include <utility> | |
#include <cassert> | |
template <typename T> | |
class cow_ptr | |
{ | |
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
#include <stdexcept> | |
#include <iostream> | |
#include <chrono> | |
using namespace std; | |
using namespace std::chrono; | |
typedef long long number; | |
typedef int count_type; |
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
#define _CRT_SECURE_NO_DEPRECATE | |
#include <cpprest/http_listener.h> | |
#include <iostream> | |
#include <iomanip> | |
#include <sstream> | |
#include <thread> | |
#include <chrono> | |
#include <ctime> |
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> | |
#include <filesystem> | |
#include <vector> | |
#include <algorithm> | |
#include <exception> | |
using namespace std; | |
using namespace std::tr2::sys; |
NewerOlder