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

Go to the source code of this file.

Classes

struct  boat::db::variant
struct  boat::db::kind< T >
struct  boat::db::kind< std::string >
struct  boat::db::kind< blob >

Namespaces

namespace  boat
namespace  boat::db

Typedefs

using boat::db::null = std::monostate
using boat::db::variant_base = std::variant<null, int64_t, double, std::string, blob>

Functions

template<std::convertible_to< variant_base > T>
void boat::db::read (variant const &in, T &out)
void boat::db::write (variant &out, std::convertible_to< variant_base > auto const &in)
template<class T>
requires requires(T val) { read(var, val); }
T boat::db::get (variant const &var)
variant boat::db::to_variant (auto const &val)