Tech News

제목C++20의 주요 기능들 - 예제와 함께 정리2021-04-08 13:55
작성자 Level 10

All C++20 core language features with examples | Oleksandr Koval’s blog (oleksandrkvl.github.io)

https://www.slideshare.net/utilforever/c20-key-features-summary 


- Concepts

- Modules

- Coroutines

- Three-way comparison

- Lambda expressions

- Constant expressions

- Aggregates

- Non-type template parameters

- Structured bindings

- Range-based for loop

- Attributes : [[likely]] , [[unlikely]] , [[no_unique_address]] , [[nodiscard]]

- Character encoding : char8_t

- Sugar

- constinit

- Signed integers are two’s complement

- __VA_OPT__ for variadic macros

- Explicitly defaulted functions with different exception specifications

- Destroying operator delete

- Conditionally explicit constructors

- Feature-test macros

- Known-to-unknown bound array conversions

- Implicit move for more local objects and rvalue references

- Conversion from T* to bool is narrowing

- Deprecate some uses of volatile

- Deprecate comma operator in subscripts

G
M
T
Text-to-speech function is limited to 200 characters
댓글
자동등록방지
(자동등록방지 숫자를 입력해 주세요)