CppWAMP
C++11 client library for the WAMP protocol
optional.hpp File Reference

Provides facilities allowing Variant to interoperate with std::optional. More...

#include <optional>
#include "../api.hpp"
#include "../variant.hpp"

Go to the source code of this file.

Namespaces

 wamp
 

Functions

template<typename T >
void wamp::convert (FromVariantConverter &conv, std::optional< T > &opt)
 Performs the conversion from a variant to a std::optional. More...
 
template<typename T >
void wamp::convert (ToVariantConverter &conv, std::optional< T > &opt)
 Performs the conversion from a std::optional to a variant. More...
 
template<typename T >
bool wamp::operator== (const Variant &v, const std::optional< T > o)
 Compares a variant and a std::optional for equality.
 
template<typename T >
bool wamp::operator== (const std::optional< T > o, const Variant &v)
 Compares a variant and a std::optional for equality.
 
template<typename T >
bool wamp::operator!= (const Variant &v, const std::optional< T > o)
 Compares a variant and a std::optional for inequality.
 
template<typename T >
bool wamp::operator!= (const std::optional< T > o, const Variant &v)
 Compares a variant and a std::optional for inequality.
 

Detailed Description

Provides facilities allowing Variant to interoperate with std::optional.