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

Description:

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

This type is of std::true_type exactly if a type cannot be unboxed and methods Box::IsType and Box::Unbox will fail to compile with that type.

With default boxing, one of the types T and T* are unboxable (depending on value type size and whether the type is copy constructible and trivially destructible).

If custom boxing for either or both of types T and T* is in place, then the given type is not unboxable if:

  • customization is not in place for the version passed (value or pointer).
  • customization is in place for the given type, but TT_IsLocked is of std::true_type.
  • The type is mapped to detail::TNotBoxable.
See also
Helpers TT_IsCustomized, TT_IsLocked and TT_IsNotBoxable.
Template Parameters
TThe type to check.
TEnableIfHelper-type for implementing specializations of this struct.

Definition at line 475 of file typetraits.inl.

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

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