libpqxx
The C++ client library for PostgreSQL
 
Loading...
Searching...
No Matches
pqxx::nullness< std::nullptr_t > Struct Reference

Static Public Member Functions

static constexpr bool is_null (std::nullptr_t const &) noexcept
 
static constexpr std::nullptr_t null () noexcept
 
static bool is_null (std::nullptr_t const &value)
 Is value a null?
 
static std::nullptr_t null ()
 Return a null value.
 

Static Public Attributes

static constexpr bool has_null = true
 
static constexpr bool always_null = true
 
static bool has_null
 Does this type have a null value?
 
static bool always_null
 Is this type always null?
 

Member Function Documentation

◆ null()

static std::nullptr_t pqxx::nullness< std::nullptr_t, void >::null ( )
staticnodiscard

Return a null value.

Don't use this in generic code to compare a value and see whether it is null. Some types may have multiple null values which do not compare as equal, or may define a null value which is not equal to anything including itself, like in SQL.


The documentation for this struct was generated from the following file: