Zserio C++17 runtime library  0.5.0
Built for Zserio 2.17.0
Optional.h File Reference
#include <optional>
#include "zserio/AllocatorHolder.h"
#include "zserio/CppRuntimeException.h"
#include "zserio/HashCodeUtil.h"
#include "zserio/Traits.h"
#include "zserio/View.h"

Go to the source code of this file.

Classes

class  zserio::BadOptionalAccess
 
class  zserio::BasicOptional< ALLOC, T >
 
struct  std::hash< zserio::BasicOptional< ALLOC, T > >
 

Namespaces

 zserio
 
 std
 

Typedefs

template<typename T >
using zserio::Optional = BasicOptional< std::allocator< uint8_t >, T >
 

Functions

template<typename ALLOC , typename T >
uint32_t zserio::calcHashCode (uint32_t seed, const BasicOptional< ALLOC, T > &opt)
 
template<typename T >
constexpr auto zserio::make_optional (T &&value)
 
template<typename T , typename... ARGS>
constexpr Optional< T > zserio::make_optional (ARGS &&... args)
 
template<typename A1 , typename T , typename A2 , typename U >
constexpr bool zserio::operator== (const BasicOptional< A1, T > &first, const BasicOptional< A2, U > &second)
 
template<typename A , typename T >
constexpr bool zserio::operator== (const BasicOptional< A, T > &opt, std::nullopt_t)
 
template<typename A , typename T >
constexpr bool zserio::operator== (std::nullopt_t, const BasicOptional< A, T > &opt)
 
template<typename A , typename T , typename U >
constexpr bool zserio::operator== (const BasicOptional< A, T > &opt, const U &value)
 
template<typename A , typename T , typename U >
constexpr bool zserio::operator== (const U &value, const BasicOptional< A, T > &opt)
 
template<typename A1 , typename T , typename A2 , typename U >
constexpr bool zserio::operator!= (const BasicOptional< A1, T > &first, const BasicOptional< A2, U > &second)
 
template<typename A , typename T >
constexpr bool zserio::operator!= (const BasicOptional< A, T > &opt, std::nullopt_t)
 
template<typename A , typename T >
constexpr bool zserio::operator!= (std::nullopt_t, const BasicOptional< A, T > &opt)
 
template<typename A , typename T , typename U >
constexpr bool zserio::operator!= (const BasicOptional< A, T > &opt, const U &value)
 
template<typename A , typename T , typename U >
constexpr bool zserio::operator!= (const U &value, const BasicOptional< A, T > &opt)
 
template<typename A1 , typename T , typename A2 , typename U >
constexpr bool zserio::operator< (const BasicOptional< A1, T > &first, const BasicOptional< A2, U > &second)
 
template<typename A , typename T >
constexpr bool zserio::operator< (const BasicOptional< A, T > &, std::nullopt_t)
 
template<typename A , typename T >
constexpr bool zserio::operator< (std::nullopt_t, const BasicOptional< A, T > &opt)
 
template<typename A , typename T , typename U >
constexpr bool zserio::operator< (const BasicOptional< A, T > &opt, const U &value)
 
template<typename A , typename T , typename U >
constexpr bool zserio::operator< (const U &value, const BasicOptional< A, T > &opt)
 
template<typename A1 , typename T , typename A2 , typename U >
constexpr bool zserio::operator> (const BasicOptional< A1, T > &first, const BasicOptional< A2, U > &second)
 
template<typename A , typename T >
constexpr bool zserio::operator> (const BasicOptional< A, T > &opt, std::nullopt_t)
 
template<typename A , typename T >
constexpr bool zserio::operator> (std::nullopt_t, const BasicOptional< A, T > &)
 
template<typename A , typename T , typename U >
constexpr bool zserio::operator> (const BasicOptional< A, T > &opt, const U &value)
 
template<typename A , typename T , typename U >
constexpr bool zserio::operator> (const U &value, const BasicOptional< A, T > &opt)
 
template<typename A1 , typename T , typename A2 , typename U >
constexpr bool zserio::operator<= (const BasicOptional< A1, T > &first, const BasicOptional< A2, U > &second)
 
template<typename A , typename T >
constexpr bool zserio::operator<= (const BasicOptional< A, T > &opt, std::nullopt_t)
 
template<typename A , typename T >
constexpr bool zserio::operator<= (std::nullopt_t, const BasicOptional< A, T > &opt)
 
template<typename A , typename T , typename U >
constexpr bool zserio::operator<= (const BasicOptional< A, T > &opt, const U &value)
 
template<typename A , typename T , typename U >
constexpr bool zserio::operator<= (const U &value, const BasicOptional< A, T > &opt)
 
template<typename A1 , typename T , typename A2 , typename U >
constexpr bool zserio::operator>= (const BasicOptional< A1, T > &first, const BasicOptional< A2, U > &second)
 
template<typename A , typename T >
constexpr bool zserio::operator>= (const BasicOptional< A, T > &opt, std::nullopt_t)
 
template<typename A , typename T >
constexpr bool zserio::operator>= (std::nullopt_t, const BasicOptional< A, T > &opt)
 
template<typename A , typename T , typename U >
constexpr bool zserio::operator>= (const BasicOptional< A, T > &opt, const U &value)
 
template<typename A , typename T , typename U >
constexpr bool zserio::operator>= (const U &value, const BasicOptional< A, T > &opt)