Files
Netralib/include/QCL_Include.hpp

56 lines
2.5 KiB
C++
Raw Normal View History

2025-08-10 15:33:06 +08:00
/**
* @file qcl_include.hpp
* @brief C++Linux环境
* @note 使C++17
*/
2025-07-31 14:47:51 +08:00
#ifndef QCL_INCLUDE_HPP
#define QCL_INCLUDE_HPP
2025-08-10 15:33:06 +08:00
// ==================== C/C++基础运行时库 ====================
#include <iostream> // 标准输入输出流cin/cout/cerr
#include <string> // std::string类及相关操作
#include <cstring> // C风格字符串操作strcpy/strcmp等
#include <cstdlib> // 通用工具函数atoi/rand/malloc等
#include <cstdio> // C风格IOprintf/scanf
#include <cassert> // 断言宏(调试期检查)
#include <cmath> // 数学函数sin/pow等
#include <ctime> // 时间处理time/clock
#include <csignal> // 信号处理signal/kill
#include <memory> // 智能指针
2025-07-31 14:47:51 +08:00
2025-08-10 15:33:06 +08:00
// ==================== STL容器与算法 ====================
#include <vector> // 动态数组(连续内存容器)
#include <list> // 双向链表
#include <deque> // 双端队列
#include <map> // 有序键值对(红黑树实现)
#include <set> // 有序集合
#include <unordered_map> // 哈希表实现的键值对
#include <unordered_set> // 哈希表实现的集合
#include <stack> // 栈适配器LIFO
#include <queue> // 队列适配器FIFO
#include <algorithm> // 通用算法sort/find等
#include <numeric> // 数值算法accumulate等
#include <iterator> // 迭代器相关
2025-07-31 14:47:51 +08:00
2025-08-10 15:33:06 +08:00
// ==================== 字符串与流处理 ====================
#include <sstream> // 字符串流内存IO
#include <fstream> // 文件流文件IO
#include <iomanip> // 流格式控制setw/setprecision
#include <regex> // 正则表达式
#include <filesystem> // 文件系统(C++17)
2025-08-15 13:04:21 +08:00
#include<termios.h>
2025-07-31 14:47:51 +08:00
2025-08-10 15:33:06 +08:00
// ==================== 并发编程支持 ====================
#include <thread> // 线程管理std::thread
#include <mutex> // 互斥锁mutex/lock_guard
#include <atomic> // 原子操作(线程安全变量)
#include <condition_variable> // 条件变量(线程同步)
2025-07-31 14:47:51 +08:00
2025-08-10 15:33:06 +08:00
// ==================== Linux网络编程 ====================
#include <sys/socket.h> // 套接字基础APIsocket/bind
#include <netinet/in.h> // IPV4/IPV6地址结构体
#include <arpa/inet.h> // 地址转换函数inet_pton等
#include <unistd.h> // POSIX APIclose/read/write
2025-07-31 14:47:51 +08:00
#endif // QCL_INCLUDE_HPP