|
libpqxx
The C++ client library for PostgreSQL
|
Nullness traits describing a type whose values are always null. More...
#include <strconv.hxx>
Static Public Member Functions | |
| static constexpr PQXX_PURE bool | is_null (TYPE const &) noexcept |
Is the given TYPE value a null? More... | |
| static constexpr PQXX_PURE TYPE | null () |
Return a sample null value. Requires TYPE to be default-constructible. More... | |
Static Public Attributes | |
| static constexpr bool | has_null = true |
Does TYPE have a null value? More... | |
| static constexpr bool | always_null = true |
Is TYPE always null? More... | |
Nullness traits describing a type whose values are always null.
If you're writing a nullness specialisation for such a type, you can optionally derive it from this type to save yourself a bit of code.
The second template parameter specifies a compile-time constant null value of this type.
|
inlinestaticconstexprnoexcept |
Is the given TYPE value a null?
|
inlinestaticconstexpr |
Return a sample null value. Requires TYPE to be default-constructible.
|
staticconstexpr |
Is TYPE always null?
|
staticconstexpr |
Does TYPE have a null value?