我可以即时创建新地图并作为函数参数传递吗?

在C#中,我可以像下面这样:

        public static Dictionary<string,string> ExampleFunction(Dictionary<string, string> dict)
        {
            return dict;
        }

        public static void CallingFunction()
        {
            ExampleFunction(new Dictionary<string, string>() { { "test", "test" } });
        }

Is there an equivalent way to do this in C++? Forgive me if this is answered elsewhere--this seems like a basic question, but I must not be using the right search terms. This comes closest to what I was looking for but no cigar: Creating a new object and passing in method parameter.