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

◆ is_not_null() [1/24]

template<typename pointer_t >
static void xtd::tunit::valid::is_not_null ( const pointer_t *  pointer)
inlinestatic

Validates that the pointer is not null.

Parameters
pointerThe pointer to check is null.
Examples
std::string str = "Anything";
std::string* s1 = &str;
std::string* s2 = nullptr;
xtd::tunit::valid::is_not_null(s2); // test fails.
static void is_not_null(const pointer_t *pointer)
Validates that the pointer is not null.
Definition valid.h:1348