21 #ifndef __TBB_aligned_space_H 22 #define __TBB_aligned_space_H 24 #include "tbb_stddef.h" 25 #include "tbb_machine.h" 32 template<
typename T,
size_t N=1>
35 typedef __TBB_TypeWithAlignmentAtLeastAsStrict(T) element_type;
36 element_type array[(
sizeof(T)*N+
sizeof(element_type)-1)/
sizeof(element_type)];
39 T*
begin() {
return internal::punned_cast<T*>(
this);}
Block of space aligned sufficiently to construct an array T with N elements.
Definition: aligned_space.h:33
T * end()
Pointer to one past last element in array.
Definition: aligned_space.h:42
T * begin()
Pointer to beginning of array.
Definition: aligned_space.h:39
The namespace tbb contains all components of the library.
Definition: parallel_for.h:44