E.V.E
v2023.02.15

◆ as_aligned() [1/2]

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

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

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