Visual Studio~® 2005 brings the type parameter model of generic programming to the Microsoft~® .NET Framework. C++/CLI supports two type parameter mechanisms—common language runtime (CLR) generics and C++ templates. In my last column, I looked at the characteristics that these two mechanisms have in common (see msdn.microsoft.com/msdnmag/issues/05/04/pureC). In this column, I'll look at some of the differences—in particular, differences in the parameter list and type constraint model.
展开▼
机译:Visual Studio〜®2005将通用编程的类型参数模型引入了Microsoft〜.NET Framework。 C ++ / CLI支持两种类型参数机制-公共语言运行时(CLR)泛型和C ++模板。在上一专栏中,我介绍了这两种机制的共同特征(请参阅msdn.microsoft.com/msdnmag/issues/05/04/pureC)。在本专栏中,我将介绍一些差异,尤其是参数列表和类型约束模型的差异。
展开▼