ALib C++ Library
Library Version: 2510 R0
Documentation generated by doxygen
Loading...
Searching...
No Matches
alib::boxing::VTableOptimizationTraits< TMapped, TIsArray > Struct Template Reference

Description:

template<typename TMapped, bool TIsArray>
struct alib::boxing::VTableOptimizationTraits< TMapped, TIsArray >

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.

See also
Template Parameters
TMappedThe mapped type to receive a vtable for.
TIsArrayDenotes if this is array-boxing or not.

Definition at line 474 of file vtable.inl.

Public Static Method Index:

static constexpr detail::VTableGet ()
 

Method Details:

◆ Get()

template<typename TMapped, bool TIsArray>
constexpr detail::VTable * alib::boxing::VTableOptimizationTraits< TMapped, TIsArray >::Get ( )
inlinestaticconstexpr

Functor to return the vtable singleton.

Returns
The requested vtable singleton.

Definition at line 478 of file vtable.inl.

Here is the call graph for this function:

The documentation for this struct was generated from the following file: