Files
Netralib/include/QCL_Include.hpp
2025-08-10 15:33:06 +08:00

55 lines
2.5 KiB
C++
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/**
* @file qcl_include.hpp
* @brief 通用C++开发头文件集合Linux环境
* @note 使用前确保目标平台支持C++17标准
*/
#ifndef QCL_INCLUDE_HPP
#define QCL_INCLUDE_HPP
// ==================== 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> // 智能指针
// ==================== 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> // 迭代器相关
// ==================== 字符串与流处理 ====================
#include <sstream> // 字符串流内存IO
#include <fstream> // 文件流文件IO
#include <iomanip> // 流格式控制setw/setprecision
#include <regex> // 正则表达式
#include <filesystem> // 文件系统(C++17)
// ==================== 并发编程支持 ====================
#include <thread> // 线程管理std::thread
#include <mutex> // 互斥锁mutex/lock_guard
#include <atomic> // 原子操作(线程安全变量)
#include <condition_variable> // 条件变量(线程同步)
// ==================== 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
#endif // QCL_INCLUDE_HPP