mirror of
https://github.com/changkun/modern-cpp-tutorial.git
synced 2025-12-17 04:34:40 +03:00
code: update head comments
This commit is contained in:
@@ -1,3 +1,13 @@
|
|||||||
|
//
|
||||||
|
// 10.1.without.concepts.cpp
|
||||||
|
// chapter 10 cpp20
|
||||||
|
// modern c++ tutorial
|
||||||
|
//
|
||||||
|
// created by changkun at changkun.de
|
||||||
|
// https://github.com/changkun/modern-cpp-tutorial
|
||||||
|
//
|
||||||
|
|
||||||
|
|
||||||
#include <list>
|
#include <list>
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,13 @@
|
|||||||
|
//
|
||||||
|
// 10.2.concepts.cpp
|
||||||
|
// chapter 10 cpp20
|
||||||
|
// modern c++ tutorial
|
||||||
|
//
|
||||||
|
// created by changkun at changkun.de
|
||||||
|
// https://github.com/changkun/modern-cpp-tutorial
|
||||||
|
//
|
||||||
|
|
||||||
|
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
//
|
//
|
||||||
// 6.1.cpp
|
// 6.1.regex.cpp
|
||||||
|
// chapter 06 regular expression
|
||||||
// modern c++ tutorial
|
// modern c++ tutorial
|
||||||
//
|
//
|
||||||
// created by changkun at changkun.de
|
// created by changkun at changkun.de
|
||||||
// https://github.com/changkun/modern-cpp-tutorial
|
// https://github.com/changkun/modern-cpp-tutorial
|
||||||
//
|
//
|
||||||
// Regular Expression
|
|
||||||
|
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <string>
|
#include <string>
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// 7.2.critical.section.a.cpp
|
// 7.4.futures.cpp
|
||||||
// chapter 7 parallelism and concurrency
|
// chapter 7 parallelism and concurrency
|
||||||
// modern c++ tutorial
|
// modern c++ tutorial
|
||||||
//
|
//
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// 7.5.cpp
|
// 7.5.producer.consumer.cpp
|
||||||
// chapter 7 parallelism and concurrency
|
// chapter 7 parallelism and concurrency
|
||||||
// modern c++ tutorial
|
// modern c++ tutorial
|
||||||
//
|
//
|
||||||
|
|||||||
@@ -1,3 +1,12 @@
|
|||||||
|
//
|
||||||
|
// 7.6.atomic.cpp
|
||||||
|
// chapter 7 parallelism and concurrency
|
||||||
|
// modern c++ tutorial
|
||||||
|
//
|
||||||
|
// created by changkun at changkun.de
|
||||||
|
// https://github.com/changkun/modern-cpp-tutorial
|
||||||
|
//
|
||||||
|
|
||||||
#include <atomic>
|
#include <atomic>
|
||||||
#include <thread>
|
#include <thread>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|||||||
@@ -1,3 +1,12 @@
|
|||||||
|
//
|
||||||
|
// 7.6.bad.example.cpp
|
||||||
|
// chapter 7 parallelism and concurrency
|
||||||
|
// modern c++ tutorial
|
||||||
|
//
|
||||||
|
// created by changkun at changkun.de
|
||||||
|
// https://github.com/changkun/modern-cpp-tutorial
|
||||||
|
//
|
||||||
|
|
||||||
#include <thread>
|
#include <thread>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,12 @@
|
|||||||
|
//
|
||||||
|
// 7.7.is.lock.free.cpp
|
||||||
|
// chapter 7 parallelism and concurrency
|
||||||
|
// modern c++ tutorial
|
||||||
|
//
|
||||||
|
// created by changkun at changkun.de
|
||||||
|
// https://github.com/changkun/modern-cpp-tutorial
|
||||||
|
//
|
||||||
|
|
||||||
#include <atomic>
|
#include <atomic>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,12 @@
|
|||||||
|
//
|
||||||
|
// 7.8.memory.order.cpp
|
||||||
|
// chapter 7 parallelism and concurrency
|
||||||
|
// modern c++ tutorial
|
||||||
|
//
|
||||||
|
// created by changkun at changkun.de
|
||||||
|
// https://github.com/changkun/modern-cpp-tutorial
|
||||||
|
//
|
||||||
|
|
||||||
#include <atomic>
|
#include <atomic>
|
||||||
#include <thread>
|
#include <thread>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
@@ -1,11 +1,11 @@
|
|||||||
//
|
//
|
||||||
// 8.1.cpp
|
// 9.1.noexcept.cpp
|
||||||
|
// chapter 09 others
|
||||||
// modern c++ tutorial
|
// modern c++ tutorial
|
||||||
//
|
//
|
||||||
// created by changkun at changkun.de
|
// created by changkun at changkun.de
|
||||||
// https://github.com/changkun/modern-cpp-tutorial
|
// https://github.com/changkun/modern-cpp-tutorial
|
||||||
//
|
//
|
||||||
// noexcept
|
|
||||||
|
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
//
|
//
|
||||||
// 8.2.cpp
|
// 9.2.literals.cpp
|
||||||
|
// chapter 09 others
|
||||||
// modern c++ tutorial
|
// modern c++ tutorial
|
||||||
//
|
//
|
||||||
// created by changkun at changkun.de
|
// created by changkun at changkun.de
|
||||||
// https://github.com/changkun/modern-cpp-tutorial
|
// https://github.com/changkun/modern-cpp-tutorial
|
||||||
//
|
//
|
||||||
// literals
|
|
||||||
|
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|||||||
@@ -1,3 +1,13 @@
|
|||||||
|
//
|
||||||
|
// 9.3.alignment.cpp
|
||||||
|
// chapter 09 others
|
||||||
|
// modern c++ tutorial
|
||||||
|
//
|
||||||
|
// created by changkun at changkun.de
|
||||||
|
// https://github.com/changkun/modern-cpp-tutorial
|
||||||
|
//
|
||||||
|
|
||||||
|
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
struct Storage {
|
struct Storage {
|
||||||
|
|||||||
Reference in New Issue
Block a user