Write optional value O to OS, or std::nullopt if empty.

Synopsis

Declared in <llvm/Support/raw_ostream.h>

template<
    typename T,
    typename = decltype(std::declval<raw_ostream &>()
                                          << std::declval<const T &>())>
raw_ostream&
operator<<(
    raw_ostream& OS,
    std::optional<T> const& O);

Return Value

The stream OS, for chaining.

Parameters

Name

Description

OS

Stream to write to.

O

Optional value to stream, or empty for nullopt.

Created with MrDocs