xtd 0.2.0
Loading...
Searching...
No Matches

◆ is_null() [9/24]

template<typename pointer_t >
static void xtd::tunit::valid::is_null ( const xtd::uptr< pointer_t > &  pointer)
inlinestatic

Validates that the pointer is null.

Parameters
pointerThe pointer to check is null.
Examples
xtd::uptr<std::string> s2 = xtd::new_uptr<std::string>("Anything");
xtd::tunit::valid::is_null(s2); // test fails.
static void is_null(const pointer_t *pointer)
Validates that the pointer is null.
Definition valid.h:1739
std::unique_ptr< type_t > uptr
The xtd::uptr object is a unique pointer.
Definition uptr.h:25