More Related Content
PPTX
[C++ 20] [P1035R7] Input range adaptors. PPTX
[C++ 20] [P0645R10] Text formatting 내용 정리 PPTX
C++20 constexpr default constructor of std::atomic and std::atomic_flag PDF
[C++ 20][P0325R4] std::to_array() 내용 정리. PDF
C++ 20 Efficient access to std::basic_stringbuf’s buffer PDF
C++20 Remove std::weak_equality and std::strong_equality.pdf PDF
C++20 std::execution::unseq.pdf PDF
C++ 20 class template argument deduction for alias templates More from 진화 손
PDF
C++ 20 Make stateful allocator propagation more consistent for operator+(basi... PDF
C++ 20 Unevaluated asm-declaration in constexpr functions PDF
C++20 Utility functions to implement uses-allocator construction PDF
C++ 20 std__reference_wrapper for incomplete types PDF
C++ 20 Stronger Unicode requirements PDF
PDF
PDF
C++ 20 Relaxing the range-for loop customization point finding rules PDF
C++ 20 Relaxing the structured bindings customization point finding rules PDF
PDF
PDF
C++20 Comparing unordered containers PDF
C++ 20 Lambdas in unevaluated contexts PDF
C++20 Library support for operator<=> <compare> PDF
C++20 Atomic std::shared_ptr and std::weak_ptr PDF
C++20 Default member initializers for bit-fields PDF
C++ 20 constexpr for algorithm and utility PDF
C++17 init-statements for if and switch PDF
C++17 Aggregate classes with base classes PDF
C++20 Attributes [[likely]] and [[unlikely]]
- 1.
- 2.
선언문을 제외한 label과 statements 에서 최적화를 위해 사용
(https://wikidocs.net/51311)
[[likely]] : 빈도가 높음
[[unlikely]] : 빈도가 낮음
- 3.
case 2 인경우에는 최적화가 되지만 case 1 인 경우에는 최적화되지 않는다.
(fallthrough 무시)
- 4.