value initialization

value initialization

This is the initialization performed when a variable is constructed with an empty initializer.

Syntax

T(); (1)
new T (); (2)
Class::Class(...) : member() { ... } (3)
T object {}; (4) 登录查看完整内容