boat
C++23 geospatial library
Loading...
Searching...
No Matches
optional.hpp File Reference
#include <boat/db/variant.hpp>
#include <optional>
Include dependency graph for optional.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  boat::db::kind< T >

Namespaces

namespace  boat
namespace  boat::db

Functions

template<class T>
requires requires { read(in, out.emplace()); }
void boat::db::read (variant const &in, std::optional< T > &out)
 NULL becomes std::nullopt.
template<class T>
requires requires { write(out, *in); }
void boat::db::write (variant &out, std::optional< T > const &in)
 std::nullopt becomes NULL.