Skip to content

Instantly share code, notes, and snippets.

View EAirPeter's full-sized avatar

EAirPeter EAirPeter

View GitHub Profile
/*
* utils/Type.h
* Provides utilities for creating types.
* Any move operation will destruct the source object.
*/
#ifndef PQS_SOURCE
# error Invalid use of this file.
#endif
#include <chrono> // std::chrono
#include <cstddef> // std::size_t
#include <fstream> // std::ofstream
#include <future> // std::{async,future}
#include <iomanip> // std::{put_time,setw}
#include <iostream> // std::{cout,endl}
#include <mutex> // std::{mutex,unique_lock}
#include <sstream> // std::ostringstream
#include <string> // std::{,to_}string
#include <thread> // std::{,this_}thead