libzypp  17.31.31
zypp::MLSep Struct Reference

Helper to produce not-NL-terminated multi line output. More...

#include <base/LogTools.h>

Public Attributes

bool _first = true
 

Detailed Description

Helper to produce not-NL-terminated multi line output.

Used as leading separator it prints a separating NL by omitting output upon it's first invocation.

Container foo { 1,2,3 };
MLSep sep;
for ( auto && el : foo )
cout << sep << el;
# "1\n2\n3"

Definition at line 44 of file LogTools.h.

Member Data Documentation

◆ _first

bool zypp::MLSep::_first = true

Definition at line 45 of file LogTools.h.


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