|
Squid Web Cache master
|
#include <IoManip.h>
Public Member Functions | |
| AtMostOnce (const T &t) | |
caller must ensure t lifetime extends to the last use of this AtMostOnce instance | |
| void | print (std::ostream &os) |
Private Attributes | |
| const T & | toPrint |
| bool | printed = false |
Helps print T object at most once per AtMostOnce<T> object lifetime. T objects are printed to std::ostream using operator "<<".
|
inlineexplicit |
|
inline |
Definition at line 265 of file IoManip.h.
References AtMostOnce< T >::printed, and AtMostOnce< T >::toPrint.
Referenced by operator<<().
|
private |
Definition at line 274 of file IoManip.h.
Referenced by AtMostOnce< T >::print().
|
private |
Definition at line 273 of file IoManip.h.
Referenced by AtMostOnce< T >::print().