Can I use C++ standard container classes without exporting them?

Yes. You can.

All C++ standard template library(STL) container classes as I listed below, all of the STL C++ container classes.

are discovered by xInterop C++ .NET Bridge automatically when they are instantiated and used as parameter type or return type and they will be exported automatically in a supplement C++ DLL. If you build your C++ native DLL and use xInterop C++ .NET Bridge to generate C# wrapper classes or libraries, you are not required to export any of the instantiated container classes, no matter how complicated they are, they will be discovered and corresponding C# wrapper class will get generated. You may would want to read the following blog post in details.

Advanced technology to wrap native C++ template class in C# automatically


← Faqs
Translate »