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

Viewed 97
1 Answers

One of the requirements of a constexpr function is that it can only call other constexpr functions.

So, this allows push_back() to be called from some other constexpr function that might, actually, return something useful.

Related