Google Cloud C++ Client 2.10.1
C++ Client Library for Google Cloud Platform
Loading...
Searching...
No Matches
Public Member Functions | List of all members
google::cloud::NullStream Struct Reference

Implements operator<< for all types, without any effect. More...

#include <google/cloud/log.h>

Public Member Functions

template<typename T >
NullStreamoperator<< (T)
 Generic do-nothing streaming operator. More...
 

Detailed Description

Implements operator<< for all types, without any effect.

It is desirable to disable at compile-time tracing, debugging, and other low severity messages. The Google Cloud Platform C++ Libraries logging adaptors return an object of this class when the particular log-line is disabled at compile-time.

Member Function Documentation

◆ operator<<()

template<typename T >
NullStream & google::cloud::NullStream::operator<< ( )
inline

Generic do-nothing streaming operator.