Developer Guide and Reference


make_ n_container template function

Factory function to construct an instance of a properly-typed n_container<…> based on n_extent_t passed to it.


template< typename PrimitiveT, typename LayoutT, typename AllocatorT = allocator::default_alloc, typename ExtentsT > auto make_n_container(const ExtentsT &_extents) ->n_container<PrimitiveT, LayoutT, ExtentsT, AllocatorT>
to more easily create an n-dimensional container using template argument deduction, and avoid specifying the type of extents.
An example of the instantiation of a High Definition image object is below.
typedef n_container<RGBAs, layout::soa, n_extent_t<int, int>> HdImage; HdImage image1(n_extent[1080][1920]);
Alternatively, it is possible to use factory function with the C++11 keyword
, as shown below.
auto image1 = make_n_container<RGBAs, layout::soa>(n_extent[1080][1920]);

Product and Performance Information


Intel's compilers may or may not optimize to the same degree for non-Intel microprocessors for optimizations that are not unique to Intel microprocessors. These optimizations include SSE2, SSE3, and SSSE3 instruction sets and other optimizations. Intel does not guarantee the availability, functionality, or effectiveness of any optimization on microprocessors not manufactured by Intel. Microprocessor-dependent optimizations in this product are intended for use with Intel microprocessors. Certain optimizations not specific to Intel microarchitecture are reserved for Intel microprocessors. Please refer to the applicable product User and Reference Guides for more i