mirror of
https://github.com/AnthonyCalandra/modern-cpp-features.git
synced 2025-12-17 10:04:35 +03:00
Consistent title casing.
This commit is contained in:
2
CPP14.md
2
CPP14.md
@@ -137,7 +137,7 @@ constexpr int factorial(int n) {
|
|||||||
factorial(5); // == 120
|
factorial(5); // == 120
|
||||||
```
|
```
|
||||||
|
|
||||||
### Variable Templates
|
### Variable templates
|
||||||
C++14 allows variables to be templated:
|
C++14 allows variables to be templated:
|
||||||
|
|
||||||
```c++
|
```c++
|
||||||
|
|||||||
4
CPP17.md
4
CPP17.md
@@ -244,13 +244,13 @@ struct S {};
|
|||||||
static_assert(isIntegral<S>() == false);
|
static_assert(isIntegral<S>() == false);
|
||||||
```
|
```
|
||||||
|
|
||||||
### UTF-8 Character Literals
|
### UTF-8 character literals
|
||||||
A character literal that begins with `u8` is a character literal of type `char`. The value of a UTF-8 character literal is equal to its ISO 10646 code point value.
|
A character literal that begins with `u8` is a character literal of type `char`. The value of a UTF-8 character literal is equal to its ISO 10646 code point value.
|
||||||
```c++
|
```c++
|
||||||
char x = u8'x';
|
char x = u8'x';
|
||||||
```
|
```
|
||||||
|
|
||||||
### Direct List Initialization of Enums
|
### Direct list initialization of enums
|
||||||
Enums can now be initialized using braced syntax.
|
Enums can now be initialized using braced syntax.
|
||||||
```c++
|
```c++
|
||||||
enum byte : unsigned char {};
|
enum byte : unsigned char {};
|
||||||
|
|||||||
@@ -625,13 +625,13 @@ struct S {};
|
|||||||
static_assert(isIntegral<S>() == false);
|
static_assert(isIntegral<S>() == false);
|
||||||
```
|
```
|
||||||
|
|
||||||
### UTF-8 Character Literals
|
### UTF-8 character literals
|
||||||
A character literal that begins with `u8` is a character literal of type `char`. The value of a UTF-8 character literal is equal to its ISO 10646 code point value.
|
A character literal that begins with `u8` is a character literal of type `char`. The value of a UTF-8 character literal is equal to its ISO 10646 code point value.
|
||||||
```c++
|
```c++
|
||||||
char x = u8'x';
|
char x = u8'x';
|
||||||
```
|
```
|
||||||
|
|
||||||
### Direct List Initialization of Enums
|
### Direct list initialization of enums
|
||||||
Enums can now be initialized using braced syntax.
|
Enums can now be initialized using braced syntax.
|
||||||
```c++
|
```c++
|
||||||
enum byte : unsigned char {};
|
enum byte : unsigned char {};
|
||||||
@@ -975,7 +975,7 @@ constexpr int factorial(int n) {
|
|||||||
factorial(5); // == 120
|
factorial(5); // == 120
|
||||||
```
|
```
|
||||||
|
|
||||||
### Variable Templates
|
### Variable templates
|
||||||
C++14 allows variables to be templated:
|
C++14 allows variables to be templated:
|
||||||
|
|
||||||
```c++
|
```c++
|
||||||
|
|||||||
Reference in New Issue
Block a user