mirror of
https://github.com/AnthonyCalandra/modern-cpp-features.git
synced 2025-12-18 10:34:35 +03:00
Fix title casing.
This commit is contained in:
6
CPP20.md
6
CPP20.md
@@ -369,7 +369,7 @@ Concepts are also provided by the standard library for building more complicated
|
|||||||
|
|
||||||
See also: [concepts](#concepts).
|
See also: [concepts](#concepts).
|
||||||
|
|
||||||
### synchronized buffered outputstream
|
### Synchronized buffered outputstream
|
||||||
Buffers output operations for the wrapped output stream ensuring synchronization (i.e. no interleaving of output).
|
Buffers output operations for the wrapped output stream ensuring synchronization (i.e. no interleaving of output).
|
||||||
```c++
|
```c++
|
||||||
std::osyncstream{std::cout} << "The value of x is:" << x << std::endl;
|
std::osyncstream{std::cout} << "The value of x is:" << x << std::endl;
|
||||||
@@ -412,7 +412,7 @@ std::span<double, LENGTH_ELEMENTS> span2 = arr; // ERROR
|
|||||||
std::span<int, 1> span3 = arr; // ERROR
|
std::span<int, 1> span3 = arr; // ERROR
|
||||||
```
|
```
|
||||||
|
|
||||||
### bit operations
|
### Bit operations
|
||||||
C++20 provides a new `<bit>` header which provides some bit operations including popcount.
|
C++20 provides a new `<bit>` header which provides some bit operations including popcount.
|
||||||
```c++
|
```c++
|
||||||
std::popcount(0u); // 0
|
std::popcount(0u); // 0
|
||||||
@@ -420,7 +420,7 @@ std::popcount(1u); // 1
|
|||||||
std::popcount(0b1111'0000u); // 4
|
std::popcount(0b1111'0000u); // 4
|
||||||
```
|
```
|
||||||
|
|
||||||
### math constants
|
### Math constants
|
||||||
Mathematical constants including PI, Euler's number, etc. defined in the `<numbers>` header.
|
Mathematical constants including PI, Euler's number, etc. defined in the `<numbers>` header.
|
||||||
```c++
|
```c++
|
||||||
std::numbers::pi; // 3.14159...
|
std::numbers::pi; // 3.14159...
|
||||||
|
|||||||
@@ -461,7 +461,7 @@ Concepts are also provided by the standard library for building more complicated
|
|||||||
|
|
||||||
See also: [concepts](#concepts).
|
See also: [concepts](#concepts).
|
||||||
|
|
||||||
### synchronized buffered outputstream
|
### Synchronized buffered outputstream
|
||||||
Buffers output operations for the wrapped output stream ensuring synchronization (i.e. no interleaving of output).
|
Buffers output operations for the wrapped output stream ensuring synchronization (i.e. no interleaving of output).
|
||||||
```c++
|
```c++
|
||||||
std::osyncstream{std::cout} << "The value of x is:" << x << std::endl;
|
std::osyncstream{std::cout} << "The value of x is:" << x << std::endl;
|
||||||
@@ -504,7 +504,7 @@ std::span<double, LENGTH_ELEMENTS> span2 = arr; // ERROR
|
|||||||
std::span<int, 1> span3 = arr; // ERROR
|
std::span<int, 1> span3 = arr; // ERROR
|
||||||
```
|
```
|
||||||
|
|
||||||
### bit operations
|
### Bit operations
|
||||||
C++20 provides a new `<bit>` header which provides some bit operations including popcount.
|
C++20 provides a new `<bit>` header which provides some bit operations including popcount.
|
||||||
```c++
|
```c++
|
||||||
std::popcount(0u); // 0
|
std::popcount(0u); // 0
|
||||||
@@ -512,7 +512,7 @@ std::popcount(1u); // 1
|
|||||||
std::popcount(0b1111'0000u); // 4
|
std::popcount(0b1111'0000u); // 4
|
||||||
```
|
```
|
||||||
|
|
||||||
### math constants
|
### Math constants
|
||||||
Mathematical constants including PI, Euler's number, etc. defined in the `<numbers>` header.
|
Mathematical constants including PI, Euler's number, etc. defined in the `<numbers>` header.
|
||||||
```c++
|
```c++
|
||||||
std::numbers::pi; // 3.14159...
|
std::numbers::pi; // 3.14159...
|
||||||
|
|||||||
Reference in New Issue
Block a user