Name

aligned_space Template Class — Uninitialized memory space.

Synopsis

template<typename T, size_t N> class aligned_space;

#include "tbb/aligned_space.h"

Description

An aligned_space occupies enough memory to hold an array T[N]. The calling code 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();
	    };
	}
aligned_space()

Effects: none. Does not invoke constructors.

~aligned_space()

Effects: none. Does not invoke destructors.

T* begin()

Returns: pointer to the beginning of storage.

T* end()

Returns: begin()+N.

Get Intel Threading Building Blocks now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.