Function reset

Synopsis

#include "breeze/memory/array_pointer.hpp"

void reset(T *p) noexcept

Description

If the argument equals raw_pointer(), does nothing; otherwise, executes delete [] raw_pointer() and sets the internal pointer to the argument.

Requires for T to be a complete type at the point of instantiation.

Postcondition
raw_pointer() == p

Source

Line 90 in breeze/memory/array_pointer.hpp.