Content


NTL
Core
cast

cast


Try to convert one type into another. Return nullptr if types are incompatible.

template<class DstType, class SrcType> DstType cast(SrcType value);

Example of converting IButton instance into CButton instance is next

CButton *btn{ cast<CButton*>(ibutton) };
Namespace: nitisa
Include: Nitisa/Core/Utils.h