├── .clang-tidy ├── .github └── workflows │ ├── cmake.yml │ └── xmake.yml.bak ├── CMakeLists.txt ├── CMakePresets.json ├── LICENSE ├── README.md ├── cmake ├── compilers.cmake ├── features.cmake └── will_fail.cmake ├── coroutine ├── CMakeLists.txt ├── co_return.cpp ├── coroutine_handle.cpp ├── generator.cpp ├── handle.cpp ├── promise.cpp ├── return.cpp └── yield.cpp ├── cpp11 ├── CMakeLists.txt ├── GetLastError.cpp ├── current_exception.cpp ├── getenv.cpp ├── iota.cpp └── nullptr.cpp ├── cpp14 ├── CMakeLists.txt ├── make_unique.cpp └── thread.cpp ├── cpp17 ├── CMakeLists.txt ├── deduction_guides.cpp ├── fallthrough.cpp ├── filesystem.cpp ├── folding.cpp ├── init_if_switch.cpp ├── math_special_functions.cpp ├── maybe_unused.cpp └── sample.cpp ├── cpp20 ├── CMakeLists.txt ├── barrier.cpp ├── bit_width.cpp ├── format.cpp ├── hardware_interference_size.cpp ├── jthread.cpp ├── latch.cpp ├── lerp.cpp ├── likely.cpp ├── math_constants.cpp ├── midpoint.cpp ├── ranges_find.cpp ├── semaphore.cpp ├── smart_ptr_for_overwrite.cpp ├── source_location.cpp ├── stop_callback.cpp ├── stop_source.cpp └── structured_bindings.cpp ├── cpp23 ├── CMakeLists.txt ├── assume.cpp ├── expected.cpp ├── flat_map.cpp ├── flat_set.cpp ├── mdspan.cpp ├── print.cpp ├── ranges_cartesian_product.cpp ├── ranges_enumerate.cpp ├── stacktrace.cpp ├── stdfloat.cpp └── unreachable.cpp ├── cpp26 ├── CMakeLists.txt ├── adl_projected.cpp ├── debugging.cpp ├── format_pointer.cpp ├── linalg.cpp └── saturation_arithmetic.cpp ├── cppcheck.supp ├── execution_policy ├── CMakeLists.txt ├── Readme.md ├── adjacent_find.cpp ├── randgen.cpp ├── randgen.h └── sort.cpp └── xmake ├── tests.lua └── xmake.lua /.clang-tidy: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scivision/Cpp23-examples/HEAD/.clang-tidy -------------------------------------------------------------------------------- /.github/workflows/cmake.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scivision/Cpp23-examples/HEAD/.github/workflows/cmake.yml -------------------------------------------------------------------------------- /.github/workflows/xmake.yml.bak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scivision/Cpp23-examples/HEAD/.github/workflows/xmake.yml.bak -------------------------------------------------------------------------------- /CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scivision/Cpp23-examples/HEAD/CMakeLists.txt -------------------------------------------------------------------------------- /CMakePresets.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scivision/Cpp23-examples/HEAD/CMakePresets.json -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scivision/Cpp23-examples/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scivision/Cpp23-examples/HEAD/README.md -------------------------------------------------------------------------------- /cmake/compilers.cmake: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scivision/Cpp23-examples/HEAD/cmake/compilers.cmake -------------------------------------------------------------------------------- /cmake/features.cmake: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scivision/Cpp23-examples/HEAD/cmake/features.cmake -------------------------------------------------------------------------------- /cmake/will_fail.cmake: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scivision/Cpp23-examples/HEAD/cmake/will_fail.cmake -------------------------------------------------------------------------------- /coroutine/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scivision/Cpp23-examples/HEAD/coroutine/CMakeLists.txt -------------------------------------------------------------------------------- /coroutine/co_return.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scivision/Cpp23-examples/HEAD/coroutine/co_return.cpp -------------------------------------------------------------------------------- /coroutine/coroutine_handle.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scivision/Cpp23-examples/HEAD/coroutine/coroutine_handle.cpp -------------------------------------------------------------------------------- /coroutine/generator.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scivision/Cpp23-examples/HEAD/coroutine/generator.cpp -------------------------------------------------------------------------------- /coroutine/handle.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scivision/Cpp23-examples/HEAD/coroutine/handle.cpp -------------------------------------------------------------------------------- /coroutine/promise.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scivision/Cpp23-examples/HEAD/coroutine/promise.cpp -------------------------------------------------------------------------------- /coroutine/return.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scivision/Cpp23-examples/HEAD/coroutine/return.cpp -------------------------------------------------------------------------------- /coroutine/yield.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scivision/Cpp23-examples/HEAD/coroutine/yield.cpp -------------------------------------------------------------------------------- /cpp11/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scivision/Cpp23-examples/HEAD/cpp11/CMakeLists.txt -------------------------------------------------------------------------------- /cpp11/GetLastError.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scivision/Cpp23-examples/HEAD/cpp11/GetLastError.cpp -------------------------------------------------------------------------------- /cpp11/current_exception.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scivision/Cpp23-examples/HEAD/cpp11/current_exception.cpp -------------------------------------------------------------------------------- /cpp11/getenv.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scivision/Cpp23-examples/HEAD/cpp11/getenv.cpp -------------------------------------------------------------------------------- /cpp11/iota.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scivision/Cpp23-examples/HEAD/cpp11/iota.cpp -------------------------------------------------------------------------------- /cpp11/nullptr.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scivision/Cpp23-examples/HEAD/cpp11/nullptr.cpp -------------------------------------------------------------------------------- /cpp14/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scivision/Cpp23-examples/HEAD/cpp14/CMakeLists.txt -------------------------------------------------------------------------------- /cpp14/make_unique.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scivision/Cpp23-examples/HEAD/cpp14/make_unique.cpp -------------------------------------------------------------------------------- /cpp14/thread.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scivision/Cpp23-examples/HEAD/cpp14/thread.cpp -------------------------------------------------------------------------------- /cpp17/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scivision/Cpp23-examples/HEAD/cpp17/CMakeLists.txt -------------------------------------------------------------------------------- /cpp17/deduction_guides.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scivision/Cpp23-examples/HEAD/cpp17/deduction_guides.cpp -------------------------------------------------------------------------------- /cpp17/fallthrough.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scivision/Cpp23-examples/HEAD/cpp17/fallthrough.cpp -------------------------------------------------------------------------------- /cpp17/filesystem.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scivision/Cpp23-examples/HEAD/cpp17/filesystem.cpp -------------------------------------------------------------------------------- /cpp17/folding.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scivision/Cpp23-examples/HEAD/cpp17/folding.cpp -------------------------------------------------------------------------------- /cpp17/init_if_switch.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scivision/Cpp23-examples/HEAD/cpp17/init_if_switch.cpp -------------------------------------------------------------------------------- /cpp17/math_special_functions.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scivision/Cpp23-examples/HEAD/cpp17/math_special_functions.cpp -------------------------------------------------------------------------------- /cpp17/maybe_unused.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scivision/Cpp23-examples/HEAD/cpp17/maybe_unused.cpp -------------------------------------------------------------------------------- /cpp17/sample.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scivision/Cpp23-examples/HEAD/cpp17/sample.cpp -------------------------------------------------------------------------------- /cpp20/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scivision/Cpp23-examples/HEAD/cpp20/CMakeLists.txt -------------------------------------------------------------------------------- /cpp20/barrier.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scivision/Cpp23-examples/HEAD/cpp20/barrier.cpp -------------------------------------------------------------------------------- /cpp20/bit_width.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scivision/Cpp23-examples/HEAD/cpp20/bit_width.cpp -------------------------------------------------------------------------------- /cpp20/format.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scivision/Cpp23-examples/HEAD/cpp20/format.cpp -------------------------------------------------------------------------------- /cpp20/hardware_interference_size.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scivision/Cpp23-examples/HEAD/cpp20/hardware_interference_size.cpp -------------------------------------------------------------------------------- /cpp20/jthread.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scivision/Cpp23-examples/HEAD/cpp20/jthread.cpp -------------------------------------------------------------------------------- /cpp20/latch.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scivision/Cpp23-examples/HEAD/cpp20/latch.cpp -------------------------------------------------------------------------------- /cpp20/lerp.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scivision/Cpp23-examples/HEAD/cpp20/lerp.cpp -------------------------------------------------------------------------------- /cpp20/likely.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scivision/Cpp23-examples/HEAD/cpp20/likely.cpp -------------------------------------------------------------------------------- /cpp20/math_constants.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scivision/Cpp23-examples/HEAD/cpp20/math_constants.cpp -------------------------------------------------------------------------------- /cpp20/midpoint.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scivision/Cpp23-examples/HEAD/cpp20/midpoint.cpp -------------------------------------------------------------------------------- /cpp20/ranges_find.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scivision/Cpp23-examples/HEAD/cpp20/ranges_find.cpp -------------------------------------------------------------------------------- /cpp20/semaphore.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scivision/Cpp23-examples/HEAD/cpp20/semaphore.cpp -------------------------------------------------------------------------------- /cpp20/smart_ptr_for_overwrite.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scivision/Cpp23-examples/HEAD/cpp20/smart_ptr_for_overwrite.cpp -------------------------------------------------------------------------------- /cpp20/source_location.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scivision/Cpp23-examples/HEAD/cpp20/source_location.cpp -------------------------------------------------------------------------------- /cpp20/stop_callback.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scivision/Cpp23-examples/HEAD/cpp20/stop_callback.cpp -------------------------------------------------------------------------------- /cpp20/stop_source.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scivision/Cpp23-examples/HEAD/cpp20/stop_source.cpp -------------------------------------------------------------------------------- /cpp20/structured_bindings.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scivision/Cpp23-examples/HEAD/cpp20/structured_bindings.cpp -------------------------------------------------------------------------------- /cpp23/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scivision/Cpp23-examples/HEAD/cpp23/CMakeLists.txt -------------------------------------------------------------------------------- /cpp23/assume.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scivision/Cpp23-examples/HEAD/cpp23/assume.cpp -------------------------------------------------------------------------------- /cpp23/expected.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scivision/Cpp23-examples/HEAD/cpp23/expected.cpp -------------------------------------------------------------------------------- /cpp23/flat_map.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scivision/Cpp23-examples/HEAD/cpp23/flat_map.cpp -------------------------------------------------------------------------------- /cpp23/flat_set.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scivision/Cpp23-examples/HEAD/cpp23/flat_set.cpp -------------------------------------------------------------------------------- /cpp23/mdspan.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scivision/Cpp23-examples/HEAD/cpp23/mdspan.cpp -------------------------------------------------------------------------------- /cpp23/print.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scivision/Cpp23-examples/HEAD/cpp23/print.cpp -------------------------------------------------------------------------------- /cpp23/ranges_cartesian_product.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scivision/Cpp23-examples/HEAD/cpp23/ranges_cartesian_product.cpp -------------------------------------------------------------------------------- /cpp23/ranges_enumerate.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scivision/Cpp23-examples/HEAD/cpp23/ranges_enumerate.cpp -------------------------------------------------------------------------------- /cpp23/stacktrace.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scivision/Cpp23-examples/HEAD/cpp23/stacktrace.cpp -------------------------------------------------------------------------------- /cpp23/stdfloat.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scivision/Cpp23-examples/HEAD/cpp23/stdfloat.cpp -------------------------------------------------------------------------------- /cpp23/unreachable.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scivision/Cpp23-examples/HEAD/cpp23/unreachable.cpp -------------------------------------------------------------------------------- /cpp26/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scivision/Cpp23-examples/HEAD/cpp26/CMakeLists.txt -------------------------------------------------------------------------------- /cpp26/adl_projected.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scivision/Cpp23-examples/HEAD/cpp26/adl_projected.cpp -------------------------------------------------------------------------------- /cpp26/debugging.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scivision/Cpp23-examples/HEAD/cpp26/debugging.cpp -------------------------------------------------------------------------------- /cpp26/format_pointer.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scivision/Cpp23-examples/HEAD/cpp26/format_pointer.cpp -------------------------------------------------------------------------------- /cpp26/linalg.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scivision/Cpp23-examples/HEAD/cpp26/linalg.cpp -------------------------------------------------------------------------------- /cpp26/saturation_arithmetic.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scivision/Cpp23-examples/HEAD/cpp26/saturation_arithmetic.cpp -------------------------------------------------------------------------------- /cppcheck.supp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scivision/Cpp23-examples/HEAD/cppcheck.supp -------------------------------------------------------------------------------- /execution_policy/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scivision/Cpp23-examples/HEAD/execution_policy/CMakeLists.txt -------------------------------------------------------------------------------- /execution_policy/Readme.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scivision/Cpp23-examples/HEAD/execution_policy/Readme.md -------------------------------------------------------------------------------- /execution_policy/adjacent_find.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scivision/Cpp23-examples/HEAD/execution_policy/adjacent_find.cpp -------------------------------------------------------------------------------- /execution_policy/randgen.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scivision/Cpp23-examples/HEAD/execution_policy/randgen.cpp -------------------------------------------------------------------------------- /execution_policy/randgen.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scivision/Cpp23-examples/HEAD/execution_policy/randgen.h -------------------------------------------------------------------------------- /execution_policy/sort.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scivision/Cpp23-examples/HEAD/execution_policy/sort.cpp -------------------------------------------------------------------------------- /xmake/tests.lua: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scivision/Cpp23-examples/HEAD/xmake/tests.lua -------------------------------------------------------------------------------- /xmake/xmake.lua: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scivision/Cpp23-examples/HEAD/xmake/xmake.lua --------------------------------------------------------------------------------