Template Function navtk::make_not_null

Function Documentation

template<class T>
auto navtk::make_not_null(T &&p) noexcept

Helper function for creating not_null pointers.

Parameters

p – Reference to a non-null pointer.

Returns

An object of type not_null<U> which holds the pointer referenced by p . If the type T is a reference type, type U is the type referred to by T with the topmost const and/or volatile removed. Otherwise type U is type T with the topmost const and/or volatile removed.