2013-10-16 22:06:34 -06:00
|
|
|
#include <algorithm>
|
|
|
|
#include <array>
|
|
|
|
#include <assert.h>
|
|
|
|
#include <bitset>
|
|
|
|
#include <cassert>
|
|
|
|
#include <cctype>
|
|
|
|
#include <cerrno>
|
|
|
|
#include <cmath>
|
|
|
|
#include <cstdarg>
|
|
|
|
#include <cstddef>
|
|
|
|
#include <cstdio>
|
|
|
|
#include <cstdlib>
|
|
|
|
#include <cstring>
|
|
|
|
#include <ctime>
|
|
|
|
#include <ctype.h>
|
|
|
|
#include <deque>
|
|
|
|
#include <errno.h>
|
2014-08-15 00:51:13 -06:00
|
|
|
#if !defined ANDROID && !defined _WIN32
|
2013-10-16 22:06:34 -06:00
|
|
|
#include <execinfo.h>
|
2013-10-21 08:36:40 -06:00
|
|
|
#endif
|
2013-10-16 22:06:34 -06:00
|
|
|
#include <fcntl.h>
|
|
|
|
#include <float.h>
|
|
|
|
#include <fstream>
|
|
|
|
#include <functional>
|
2014-08-15 00:51:13 -06:00
|
|
|
#ifndef _WIN32
|
2013-10-16 22:06:34 -06:00
|
|
|
#include <getopt.h>
|
2014-08-15 00:51:13 -06:00
|
|
|
#endif
|
2013-10-16 22:06:34 -06:00
|
|
|
#include <iomanip>
|
|
|
|
#include <iostream>
|
|
|
|
#include <limits.h>
|
|
|
|
#include <limits>
|
|
|
|
#include <list>
|
|
|
|
#include <locale.h>
|
|
|
|
#include <map>
|
|
|
|
#include <math.h>
|
|
|
|
#include <memory.h>
|
|
|
|
#include <memory>
|
|
|
|
#include <mutex>
|
|
|
|
#include <numeric>
|
2014-08-15 00:51:13 -06:00
|
|
|
#ifndef _WIN32
|
2013-10-16 22:06:34 -06:00
|
|
|
#include <pthread.h>
|
2014-08-15 00:51:13 -06:00
|
|
|
#endif
|
2013-10-16 22:06:34 -06:00
|
|
|
#include <queue>
|
|
|
|
#include <set>
|
|
|
|
#include <sstream>
|
|
|
|
#include <stack>
|
|
|
|
#include <stdarg.h>
|
|
|
|
#include <stddef.h>
|
|
|
|
#include <stdint.h>
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <string.h>
|
|
|
|
#include <thread>
|
|
|
|
#include <time.h>
|
|
|
|
#include <type_traits>
|
2014-08-15 00:51:13 -06:00
|
|
|
#ifndef _WIN32
|
2013-10-16 22:06:34 -06:00
|
|
|
#include <unistd.h>
|
2014-08-15 00:51:13 -06:00
|
|
|
#endif
|
2013-10-16 22:06:34 -06:00
|
|
|
#include <unordered_map>
|
|
|
|
#include <unordered_set>
|
|
|
|
#include <utility>
|
|
|
|
#include <vector>
|
2014-02-18 04:09:38 -07:00
|
|
|
|
2014-08-15 00:51:13 -06:00
|
|
|
#ifdef _WIN32
|
|
|
|
|
|
|
|
#if _MSC_FULL_VER < 180030723
|
|
|
|
#error Please update your build environment to VS2013 with Update 3 or later!
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include <Windows.h>
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
2014-02-18 04:09:38 -07:00
|
|
|
#include "Common/Common.h"
|
|
|
|
#include "Common/Thread.h"
|