mirror of
https://github.com/AnthonyCalandra/modern-cpp-features.git
synced 2025-12-17 10:04:35 +03:00
Move char8_t to the language features section; add char32_t and char16_t.
This commit is contained in:
8
CPP11.md
8
CPP11.md
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user