Specialization of struct T_Boxer for template type std::array<T, Size>>
Instead of boxing a pointer to the array object, a boxed array is stored, hence a pointer to the first element contents and the array's length.
To enable this behavior, header file "alib/compatibility/std_boxing.hpp"
needs to be included in the corresponding compilation unit.
Excluded from the specialization are character arrays. Boxing of std::array
instances of those types is customized by the specialization of T_CharArray , as described in manual chapter 10. Boxing Character Strings.
TElement | The element type of the array. |
N | The size of the array. |
Definition at line 73 of file std_boxing.hpp.
#include <std_boxing.hpp>
Public Type Index: | |
using | Mapping = TMappedToArrayOf<TElement> |
Public Static Method Index: | |
static void | Read (const Placeholder &src) |
static void | Write (Placeholder &target, const std::array< TElement, N > &value) |
using Mapping = TMappedToArrayOf<TElement> |
Mapped type is TElement
[].
Definition at line 76 of file std_boxing.hpp.
|
static |
Forbid unboxing by declaring Read as void.
src | Ignored. |
|
inlinestatic |
Implementation of custom boxing for template class std::array
target | The placeholder of the target box. |
value | The object to box. |
Definition at line 83 of file std_boxing.hpp.