iceoryx2
C++ Language Bindings
Loading...
Searching...
No Matches
optional.hpp File Reference
#include "iox2/bb/duration.hpp"
#include "iox2/bb/variation/optional_adaption.hpp"
#include <ostream>

Go to the source code of this file.

Namespaces

namespace  iox2
 
namespace  iox2::bb
 

Typedefs

template<typename T >
using iox2::bb::Optional = iox2::bb::variation::Optional< T >
 
using iox2::bb::NulloptT = iox2::bb::variation::NulloptT
 

Functions

template<typename T >
auto stream_operator (std::ostream &stream, const iox2::bb::Optional< T > &value) -> std::ostream &
 

Variables

constexpr NulloptT iox2::bb::NULLOPT = iox2::bb::variation::NULLOPT
 

Function Documentation

◆ stream_operator()

template<typename T >
auto stream_operator ( std::ostream &  stream,
const iox2::bb::Optional< T > &  value 
) -> std::ostream&

A custom stream operator implementation. The default operator<< cannot be used since the optional can be exchanged with a customer based implementation that may already come with a stream operator implementation.

Definition at line 37 of file optional.hpp.