Shantanu Dubeyshantanudubey.hashnode.dev·Dec 6, 2023Towards Modern C++: Declaration and Initialization2.1) Universal Declaration Modern C++ allows usage of braces to initialize almost anything in C++. vector<int> vec{1,2,3,4,5}; string s{“Hello World!”}; string _str{‘H’, ‘E’, ‘L’, ‘L’, ‘O’ }; int x{9}; Advantages of Universal Declaration Narrowing ...Towards Modern C++cplusplusAdd a thoughtful commentNo comments yetBe the first to start the conversation.