Quick Q: Setting a vector equal to {}

Save to:
Instapaper Pocket Readability

Quick A: It is possible.

Recently on SO:

Setting a vector equal to {};

It's valid (since C++11). std::vector has an overloaded operator= taking std::initializer_list.

Add a Comment

Comments are closed.

Comments (0)

There are currently no comments on this entry.