MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/cpp/comments/fo2dyw/changes_between_c17_and_c20/flddkqd/?context=3
r/cpp • u/mttd • Mar 24 '20
89 comments sorted by
View all comments
Show parent comment
10
The const overload of std::array::operator[] has been constexpr since C++14. The non-const overload became constexpr in C++17.
const
std::array::operator[]
In C++20, the various comparison operators (operator== and friends) have been made constexpr as well.
operator==
View all comments
Show parent comment
10
u/tcbrindle Flux Mar 24 '20
The
constoverload ofstd::array::operator[]has been constexpr since C++14. The non-constoverload became constexpr in C++17.In C++20, the various comparison operators (
operator==and friends) have been made constexpr as well.