I was curious if the modern c++ standards people have considered or added the "Object Initializer" syntax of C#. For example, in C# I can initialize the members of an object like this during initialization:
StudentName student2 = new StudentName
{
FirstName = "Craig",
LastName = "Playstead"
};
public class StudentName {
public string FirstName;
public string LastName;
};
Would be really handy if the standards people had planned to add "object initializer" syntax this to modern C++, ie. C++11, C++14, C++17, C++20, etc...
Does it currently exist in the modern C++ specification?