Developer Guide and Reference


sdlt::bounds Template Function

Factory function provided for creation of bounds_t objects.
#include <sdlt/bounds.h>


template<typename LowerT, typename UpperT> auto bounds(LowerT a_lower, UpperT a_upper)
In order to make creation of objects of bounds_t cleaner the factory function bounds is provided. It basically enables LowerT and UpperT to be deduced from the arguments passed into it.
Template Argument
typename LowerT = int
Type of lower bound.
Requirements: type is int, or fixed<NumberT>, or aligned<AlignmentT>
typename UpperT = int
Type of upper bound.
Requirements: type is int, or fixed<NumberT>, or aligned<AlignmentT>
The correctly typed bounds_t<LowerT, UpperT> corresponding to types of a_lower and a_upper passed to the factory function.
Compare two ways of instantiating a bounds:
bounds_t<fixed<0>, aligned<16>> my_bounds1(0_fixed, aligned<16>(upper)) auto my_bounds2 = bounds_t<fixed<0>, aligned<16>>(0_fixed, aligned<16>(upper))
With the factory function:
auto my_bounds = bounds(0_fixed, aligned<16>(upper))

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 information regarding the specific instruction sets covered by this notice.

Notice revision #20110804