For what reason would a function with void return type be constexpr?

前端 未结 0 1007
暖寄归人
暖寄归人 2021-02-02 09:06

To give a specific example, the push_back() member functions of std::vector became constexpr in C++20.

https://en.cppreference.com/w/cpp/container/vector/push_back

相关标签:
回答
  • 消灭零回复
提交回复
热议问题