zookeeper-cpp
ZooKeeper Client for C++
|
Imports of optional
and nullopt_t
types, as well as the nullopt
constexpr
.
More...
#include <zk/config.hpp>
#include <optional>
Go to the source code of this file.
Typedefs | |
template<typename T > | |
using | zk::optional = std::optional< T > |
using | zk::nullopt_t = std::nullopt_t |
Functions | |
template<typename FUnary , typename... T> | |
auto | zk::map (FUnary &&transform, const optional< T > &...x) -> optional< decltype(transform(x.value()...))> |
Apply transform with the arguments in x iff all of them have a value. Otherwise, nullopt will be returned. More... | |
template<typename T > | |
optional< T > | zk::some (T x) |
Imports of optional
and nullopt_t
types, as well as the nullopt
constexpr
.
These are std::optional
, std::nullopt_t
, and std::nullopt
, respectively.
Definition in file optional.hpp.