├── .clang-format ├── .gitignore ├── CMakeLists.txt ├── README.md ├── clean.sh ├── common └── include │ └── common │ ├── cmd.h │ ├── defer.h │ ├── map.h │ ├── noncopyable.h │ └── own_strings.h ├── experiment ├── a.out ├── output_container.h ├── test.cc ├── test_type_traits.cc ├── thread_pool.cc └── type_rich_test.cc ├── memory ├── MemoryDetect.cc ├── MemoryDetect.h └── test.cc ├── singleton ├── CMakeLists.txt ├── include │ └── singleton │ │ └── singleton.h └── test │ └── test.cc ├── test.cc ├── thread ├── CMakeLists.txt ├── include │ └── thread │ │ ├── count_down_latch.h │ │ └── thread_pool.h ├── src │ └── count_down_latch.cc └── test │ └── test.cc ├── timer └── include │ └── timer │ └── timer.h └── toolchain.cmake /.clang-format: -------------------------------------------------------------------------------- 1 | BasedOnStyle: Google 2 | IndentWidth: 4 3 | ColumnLimit: 120 4 | SortIncludes: true 5 | MaxEmptyLinesToKeep: 2 -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | build/ 2 | .vscode/ -------------------------------------------------------------------------------- /CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chengxumiaodaren/wzq_utils/HEAD/CMakeLists.txt -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # wzq_utils 2 | c++工具库 3 | -------------------------------------------------------------------------------- /clean.sh: -------------------------------------------------------------------------------- 1 | rm -rf build/ -------------------------------------------------------------------------------- /common/include/common/cmd.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chengxumiaodaren/wzq_utils/HEAD/common/include/common/cmd.h -------------------------------------------------------------------------------- /common/include/common/defer.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chengxumiaodaren/wzq_utils/HEAD/common/include/common/defer.h -------------------------------------------------------------------------------- /common/include/common/map.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chengxumiaodaren/wzq_utils/HEAD/common/include/common/map.h -------------------------------------------------------------------------------- /common/include/common/noncopyable.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chengxumiaodaren/wzq_utils/HEAD/common/include/common/noncopyable.h -------------------------------------------------------------------------------- /common/include/common/own_strings.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chengxumiaodaren/wzq_utils/HEAD/common/include/common/own_strings.h -------------------------------------------------------------------------------- /experiment/a.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chengxumiaodaren/wzq_utils/HEAD/experiment/a.out -------------------------------------------------------------------------------- /experiment/output_container.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chengxumiaodaren/wzq_utils/HEAD/experiment/output_container.h -------------------------------------------------------------------------------- /experiment/test.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chengxumiaodaren/wzq_utils/HEAD/experiment/test.cc -------------------------------------------------------------------------------- /experiment/test_type_traits.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chengxumiaodaren/wzq_utils/HEAD/experiment/test_type_traits.cc -------------------------------------------------------------------------------- /experiment/thread_pool.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chengxumiaodaren/wzq_utils/HEAD/experiment/thread_pool.cc -------------------------------------------------------------------------------- /experiment/type_rich_test.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chengxumiaodaren/wzq_utils/HEAD/experiment/type_rich_test.cc -------------------------------------------------------------------------------- /memory/MemoryDetect.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chengxumiaodaren/wzq_utils/HEAD/memory/MemoryDetect.cc -------------------------------------------------------------------------------- /memory/MemoryDetect.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chengxumiaodaren/wzq_utils/HEAD/memory/MemoryDetect.h -------------------------------------------------------------------------------- /memory/test.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chengxumiaodaren/wzq_utils/HEAD/memory/test.cc -------------------------------------------------------------------------------- /singleton/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chengxumiaodaren/wzq_utils/HEAD/singleton/CMakeLists.txt -------------------------------------------------------------------------------- /singleton/include/singleton/singleton.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chengxumiaodaren/wzq_utils/HEAD/singleton/include/singleton/singleton.h -------------------------------------------------------------------------------- /singleton/test/test.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chengxumiaodaren/wzq_utils/HEAD/singleton/test/test.cc -------------------------------------------------------------------------------- /test.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chengxumiaodaren/wzq_utils/HEAD/test.cc -------------------------------------------------------------------------------- /thread/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chengxumiaodaren/wzq_utils/HEAD/thread/CMakeLists.txt -------------------------------------------------------------------------------- /thread/include/thread/count_down_latch.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chengxumiaodaren/wzq_utils/HEAD/thread/include/thread/count_down_latch.h -------------------------------------------------------------------------------- /thread/include/thread/thread_pool.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chengxumiaodaren/wzq_utils/HEAD/thread/include/thread/thread_pool.h -------------------------------------------------------------------------------- /thread/src/count_down_latch.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chengxumiaodaren/wzq_utils/HEAD/thread/src/count_down_latch.cc -------------------------------------------------------------------------------- /thread/test/test.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chengxumiaodaren/wzq_utils/HEAD/thread/test/test.cc -------------------------------------------------------------------------------- /timer/include/timer/timer.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chengxumiaodaren/wzq_utils/HEAD/timer/include/timer/timer.h -------------------------------------------------------------------------------- /toolchain.cmake: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chengxumiaodaren/wzq_utils/HEAD/toolchain.cmake --------------------------------------------------------------------------------