Method Get of the default version of this struct creates a VTable dynamically. For this, a corresponding templated Singleton of type VTableUnoptimized<TMapped, TIsArray> is returned.
For optimization purposes (code size as well as execution performance), this struct might be specialized for selected mapped types to return a static singleton object.
Specializations can be performed with preprocessor macros
Furthermore, with debug-compilations, such spezializations should be "registered" during bootstrap using macro ALIB_BOXING_BOOTSTRAP_VTABLE_DBG_REGISTER.
Specializations for all C++ fundamental types are given. Furthermore, various different ALib Modules provide such specializations for types they introduced and that are boxed.
TMapped | The mapped type to receive a vtable for. |
TIsArray | Denotes if this is array-boxing or not. |
Definition at line 474 of file vtable.inl.
Public Static Method Index: | |
static constexpr detail::VTable * | Get () |
|
inlinestaticconstexpr |
Functor to return the vtable singleton.
Definition at line 478 of file vtable.inl.