Template Function navtk::make_not_null
Defined in File not_null.hpp
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 byp. If the typeTis a reference type, typeUis the type referred to byTwith the topmostconstand/orvolatileremoved. Otherwise typeUis typeTwith the topmostconstand/orvolatileremoved.