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= takingstd::initializer_list
.
November 14-16, Berlin, Germany
November 18-23, Wrocław, Poland
November 25, Wrocław, Poland
February 10-15, Hagenberg, Austria
March 19-21, Madrid, Spain
April 1-4, Bristol, UK
June 16-21, Sofia, Bulgaria
By Adrien Hamelin | Feb 11, 2020 12:40 PM | Tags: basics
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= takingstd::initializer_list
.
There are currently no comments on this entry.
Add a Comment
Comments are closed.