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

You must sign in or register to add a comment.

Comments (0)

There are currently no comments on this entry.