Move char8_t to the language features section; add char32_t and char16_t.

This commit is contained in:
Anthony Calandra
2021-03-12 19:51:03 -05:00
parent ee2b5775fc
commit d9b99892b0
3 changed files with 30 additions and 14 deletions

View File

@@ -34,6 +34,7 @@ C++11 includes the following new language features:
- [ref-qualified member functions](#ref-qualified-member-functions)
- [trailing return types](#trailing-return-types)
- [noexcept specifier](#noexcept-specifier)
- [char32_t and char16_t](#char32_t-and-char16_t)
C++11 includes the following new library features:
- [std::move](#stdmove)
@@ -688,6 +689,13 @@ void g() noexcept {
}
```
### char32_t and char16_t
Provides standard types for representing UTF-8 strings.
```c++
char32_t utf8_str[] = U"\u0123";
char16_t utf8_str[] = u"\u0123";
```
## C++11 Library Features
### std::move