2017-01-28 04:49:09 +08:00
|
|
|
#pragma once
|
|
|
|
|
2017-10-17 02:44:04 +08:00
|
|
|
#if defined(_WIN32)
|
2017-01-28 04:49:09 +08:00
|
|
|
#define NOMINMAX
|
2017-03-28 15:02:33 +08:00
|
|
|
#define WIN32_LEAN_AND_MEAN
|
2017-10-14 09:37:41 +08:00
|
|
|
|
2017-10-03 07:55:06 +08:00
|
|
|
#pragma warning(suppress : 4768)
|
2017-03-30 04:16:23 +08:00
|
|
|
#include <windows.h>
|
|
|
|
|
2017-10-14 09:37:41 +08:00
|
|
|
#pragma warning(suppress : 4768)
|
|
|
|
#include <Shlobj.h>
|
|
|
|
|
2017-10-17 02:44:04 +08:00
|
|
|
#include <process.h>
|
|
|
|
#include <shellapi.h>
|
|
|
|
#include <winhttp.h>
|
|
|
|
#else
|
|
|
|
#include <unistd.h>
|
|
|
|
#endif
|
|
|
|
|
2017-03-28 15:02:33 +08:00
|
|
|
#include <algorithm>
|
2017-01-28 06:33:54 +08:00
|
|
|
#include <array>
|
2017-08-26 07:03:57 +08:00
|
|
|
#include <atomic>
|
2017-03-28 15:02:33 +08:00
|
|
|
#include <cassert>
|
|
|
|
#include <cctype>
|
|
|
|
#include <chrono>
|
|
|
|
#include <codecvt>
|
|
|
|
#include <cstdarg>
|
2017-06-08 15:36:17 +08:00
|
|
|
#include <cstddef>
|
2017-03-28 15:02:33 +08:00
|
|
|
#include <cstdint>
|
2017-10-17 02:44:04 +08:00
|
|
|
#if defined(_WIN32)
|
2017-01-28 06:37:14 +08:00
|
|
|
#include <filesystem>
|
2017-10-17 02:44:04 +08:00
|
|
|
#else
|
|
|
|
#include <experimental/filesystem>
|
|
|
|
#endif
|
|
|
|
#include <cstring>
|
2017-01-28 06:33:54 +08:00
|
|
|
#include <fstream>
|
|
|
|
#include <functional>
|
2017-03-28 15:02:33 +08:00
|
|
|
#include <iomanip>
|
|
|
|
#include <iostream>
|
2017-01-28 04:49:09 +08:00
|
|
|
#include <iterator>
|
2017-03-28 15:02:33 +08:00
|
|
|
#include <map>
|
|
|
|
#include <memory>
|
2017-08-26 07:03:57 +08:00
|
|
|
#include <mutex>
|
2017-12-02 08:08:09 +08:00
|
|
|
#include <random>
|
2017-03-28 15:02:33 +08:00
|
|
|
#include <regex>
|
|
|
|
#include <set>
|
|
|
|
#include <stdexcept>
|
|
|
|
#include <string>
|
2017-01-28 06:33:54 +08:00
|
|
|
#include <sys/timeb.h>
|
2017-10-17 02:44:04 +08:00
|
|
|
#include <sys/types.h>
|
2017-03-28 15:02:33 +08:00
|
|
|
#include <system_error>
|
2017-10-17 02:44:04 +08:00
|
|
|
#include <thread>
|
2017-01-28 06:33:54 +08:00
|
|
|
#include <time.h>
|
2017-05-24 15:44:00 +08:00
|
|
|
#include <type_traits>
|
2017-03-28 15:02:33 +08:00
|
|
|
#include <unordered_map>
|
|
|
|
#include <unordered_set>
|
|
|
|
#include <utility>
|
|
|
|
#include <vector>
|