文件名称:jthread-lite:单文件标头库中的C ++ 20的C ++ 11和更高版本的jthread
文件大小:37KB
文件格式:ZIP
更新时间:2024-03-26 09:26:37
cpp11 header-only no-dependencies single-file jthread
jthread lite:C ++ 20的jthread(用于C ++ 11和更高版本) 婴儿期的作品。 彼得·费瑟斯通(Peter Featherstone)建议。 内容 用法示例 # include " nonstd/jthread.hpp " # include < iostream> int main ( int argc, char **) { int product = 0 ; const int six = 6 ; const int seven = 7 ; { nonstd::jthread thr{[&]( int x, int y){ product = x * y; }, six, seven }; // automatically join thread here, making sure it
【文件预览】:
jthread-lite-master
----.gitignore(417B)
----.tgitconfig(138B)
----project()
--------jthread-lite.code-workspace(162B)
----.travis.yml(4KB)
----LICENSE.txt(1KB)
----README.md(8KB)
----cmake()
--------jthread-lite-config.cmake.in(168B)
--------jthread-lite-config-version.cmake.in(787B)
----include()
--------nonstd()
----example()
--------01-basic.cpp(760B)
--------02-arguments.cpp(593B)
----script()
--------update-version.py(4KB)
----appveyor.yml(2KB)
----.gitattributes(556B)
----test()
--------tc.bat(2KB)
--------jthread-main.t.cpp(5KB)
--------tg-all.bat(251B)
--------tg.bat(2KB)
--------jthread-main.t.hpp(2KB)
--------jthread.t.cpp(856B)
--------nonstd()
--------lest()
--------t.bat(1KB)
--------CMakeLists.txt(7KB)
--------tcl.bat(2KB)
----CMakeLists.txt(4KB)
----.editorconfig(604B)