list initialization

list initialization (since C++11)

Initializes an object from braced-init-list.

Syntax

direct-list-initialization

T object { arg1, arg2, ... }; (1)
T { arg1, arg2, ... }; (2)
new T { arg1, arg2, ... } (3)
Class登录查看完整内容