E.V.E  0.1-beta

◆ as_aligned() [2/2]

template<typename Lanes , typename Type >
aligned_ptr< Type, Lanes > as_aligned ( Type *  ptr,
Lanes  lanes 
)
related

Constructs an aligned_ptr from a pointer ptr. Behavior is undefined if ptr does not satisfy alignment constraint Lanes.

Parameters
ptrPointer to wrap
lanesLanes count to satisfy
Returns
An aligned_ptr holdingptr with the proper alignment constraint.