Generics

Top  Previous  Next

New features since Delphi 7 > Generics

 

 

The following discussion of the translation of Delphi generics to C++ templates goes along the Embarcadero documentation

 

http://docwiki.embarcadero.com/RADStudio/Tokyo/de/Generics_-_Index

 

 

Declaration

Nested types

Base types

Procedural types

Parameterized methods

 

 

 

Delphi2Cpp II cannot distinguish a generic type and a normal type with the same name in the same unit. There are such cases in System-pas. E.g.

 

IEnumerator = interface(IInterface)

IEnumerator<T> = interface(IEnumerator)

 

 

 



This page belongs to the DelphiXE2Cpp11 Documentation

DelphiXE2Cpp11 home  Content