E-MailRelay
Public Member Functions | Public Attributes | List of all members
G::LogStream Struct Reference

A non-throwing wrapper for std::ostream, used by G::Log. More...

#include <glogstream.h>

+ Collaboration diagram for G::LogStream:

Public Member Functions

 LogStream (std::ostream *s) noexcept
 

Public Attributes

std::ostream * m_ostream
 

Detailed Description

A non-throwing wrapper for std::ostream, used by G::Log.

This allows streaming to a G::Log instance to be inherently non-throwing without needing a try/catch block at every call site. The most common streaming operators are implemented out-of-line as a modest code size optimisation.

Definition at line 36 of file glogstream.h.

Constructor & Destructor Documentation

◆ LogStream()

G::LogStream::LogStream ( std::ostream *  s)
inlineexplicitnoexcept

Definition at line 38 of file glogstream.h.

Member Data Documentation

◆ m_ostream

std::ostream* G::LogStream::m_ostream

Definition at line 42 of file glogstream.h.


The documentation for this struct was generated from the following file: