|
Panini 1.4.0
Header-only library for generating C++, written in C++17
|
Command for outputting a single-line comment. More...
#include <CommentLine.hpp>
Public Member Functions | |
| CommentLine (const std::string &comment) | |
| CommentLine (std::string &&comment) noexcept | |
| void | Visit (Writer &writer) override |
Public Member Functions inherited from panini::Command | |
| virtual | ~Command ()=default |
Command for outputting a single-line comment.
Comment lines start with "// " in the output. Empty lines will be output as well.
Example:
Output:
|
inlineexplicit |
Construct a CommentLine with a comment that is copied to the instance.
|
inlineexplicitnoexcept |
Construct a CommentLine with a comment that is moved into the instance.
|
inlineoverridevirtual |
Accepts a Writer to write chunks to the output.
Implements panini::Command.