AnCH Framework 0.2
Another C++ Hack: C++23 utility libraries
Loading...
Searching...
No Matches
anch::log::NoopStream Class Reference

#include <stream.hpp>

Collaboration diagram for anch::log::NoopStream:

Public Member Functions

template<typename T>
constexpr const NoopStream & operator<< (const T &) const noexcept
constexpr const NoopStream & operator<< (std::ostream &(*)(std::ostream &)) const noexcept

Detailed Description

Disabled log line.
Returned for levels lower than MIN_LEVEL : every operation does nothing and is removed by the compiler.
Values are still evaluated.

Author
Vincent Lachenal
Since
0.2

Member Function Documentation

◆ operator<<() [1/2]

template<typename T>
const NoopStream & anch::log::NoopStream::operator<< ( const T & ) const
constexprnoexcept

Ignore value

Returns
this

◆ operator<<() [2/2]

const NoopStream & anch::log::NoopStream::operator<< ( std::ostream & *)(std::ostream &) const
constexprnoexcept

Ignore manipulator (std::endl , std::flush , ...)

Returns
this

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