In C++/CLI, how do I declare and call a function with an 'out' parameter?

后端 未结 3 1252
难免孤独
难免孤独 2020-11-30 03:03

I have a function which parses one string into two strings. In C# I would declare it like this:

void ParseQuery(string toParse, out string search, out strin         


        
3条回答
  •  生来不讨喜
    2020-11-30 03:31

    It's not supported. The closest you can get is ref

    Granted you can fake it, but you lose a compile time check.

提交回复
热议问题