成员初始化值列表

1
2
3
4
Something() : m_value1{ 1 }, m_value2{ 2.2 }, m_value3{ 'c' } // Initialize our member variables
{
// No need for assignment here
}