C++20 Remove std::weak_equality and std::strong_equality.pdf진화 손
This document proposes removing std::weak_equality and std::strong_equality from the C++ standard library as they provide little value and can cause confusion for users. std::equal performs element-wise equality comparisons and is sufficient for most use cases. Removing these unnecessary concepts would simplify the library without loss of functionality.
C++20 Remove std::weak_equality and std::strong_equality.pdf진화 손
This document proposes removing std::weak_equality and std::strong_equality from the C++ standard library as they provide little value and can cause confusion for users. std::equal performs element-wise equality comparisons and is sufficient for most use cases. Removing these unnecessary concepts would simplify the library without loss of functionality.
C++20 Default member initializers for bit-fields진화 손
C++ 20 allows default member initializers for bit-fields. Default member initializers can initialize bit-fields if no other initializer is specified. This document discusses a new feature in C++ 20 that enables default initialization of bit-field members.
This document discusses C++ constexpr for loops and functions from the <algorithm> and <utility> headers. It notes that some functions like swap_ranges, iter_swap, reverse, rotate, shuffle, sort, stable_sort, partial_sort, partial_sort_copy, nth_element, partition, stable_partition, inplace_merge, push_heap, pop_heap, make_heap, sort_heap, next_permutation, and prev_permutation have been excluded because their internal implementations would be difficult to make constexpr.
C++20 Default member initializers for bit-fields진화 손
C++ 20 allows default member initializers for bit-fields. Default member initializers can initialize bit-fields if no other initializer is specified. This document discusses a new feature in C++ 20 that enables default initialization of bit-field members.
This document discusses C++ constexpr for loops and functions from the <algorithm> and <utility> headers. It notes that some functions like swap_ranges, iter_swap, reverse, rotate, shuffle, sort, stable_sort, partial_sort, partial_sort_copy, nth_element, partition, stable_partition, inplace_merge, push_heap, pop_heap, make_heap, sort_heap, next_permutation, and prev_permutation have been excluded because their internal implementations would be difficult to make constexpr.
2. std::array 를 생성해 주는 함수. C 스타일 배열을 변환할 수 있다
다차원 배열은 변환 안된다
copy 버전
move 버전
3. 템플릿 타입 추론
std::array 는 선언시 길이를 직접 지정해줘야하지만 to_array 는 자동으로 해준다
to_array 에 문자열을 넣었을 경우 문자 배열로 인식한다
예제 더 보기 : https://coliru.stacked-crooked.com/view?id=dee0b07571326216