[For complete, up-to-date TBB information visit: http://www.ThreadingBuildingBlocks.org]

TbbRef (Ver. 20): 5.4 aligned_space Template Class

5.4 aligned_space Template Class

Summary

Uninitialized memory space.

Syntax

template<typename T, size_t N> class aligned_space;

Header

#include "tbb/aligned_space.h"

Description

An aligned_space occupies enough memory to hold an array T[N]. The client is responsible for initializing or destroying the objects. An aligned_space is typically used as a local variable or field in scenarios where a block of fixed-length uninitialized memory is needed.

Members

namespace tbb {

template<typename T, size_t N>

class aligned_space {

public:

aligned_space();

~aligned_space();

T* begin();

T* end();

};

}

5.4.1 aligned_space()

Effects

None. Does not invoke constructors.

5.4.2 ~aligned_space()

Effects

None. Does not invoke destructors.

5.4.3 T* begin()

Returns

Pointer to beginning of storage.

5.4.4 T* end()

Returns

begin()+N

[For complete, up-to-date TBB information visit: http://www.ThreadingBuildingBlocks.org]