ALib C++ Library
Library Version: 2412 R0
Documentation generated by doxygen
Loading...
Searching...
No Matches
TT_IsLocked< T, TEnableIf > Struct Template Reference

Description:

template<typename T, typename TEnableIf = void>
struct alib::boxing::TT_IsLocked< T, TEnableIf >

Helper-struct that inherits std::true_type if customized boxing is in place that disallows unboxing, otherwise std::false_type.

This struct is strict in the following sense: It is of std::false type, if given T is a non-customized value type TV, while the corresponding pointer type TV* type is locked - and vice versa. Note that in these two cases, the type is still not unboxable because it is locked through the corresponding other customization.

This behavior is intended and needed internally.

Note
Unboxing of a type is disabled, if method T_Boxer::Read of a specialized boxer is declared to return void.
See also
TT_IsUnboxable for an alternative that is of std::true_type exactly if a type cannot be unboxed and methods Box::IsType and Box::Unbox fail to compile with that type.
Template Parameters
TThe type to check.
TEnableIfUsed for conditional specializations of this struct.

Definition at line 406 of file typetraits.inl.

Inheritance diagram for TT_IsLocked< T, TEnableIf >:
[legend]
Collaboration diagram for TT_IsLocked< T, TEnableIf >:
[legend]

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