忽略所有输出的打印工具类,与 NBT_Print 拥有完全相同的仿函数接口。 可用于替换 NBT_Print 以禁用所有信息输出。
更多...
#include <NBT_Print.hpp>
|
|
| NBT_NoPrint (void) noexcept |
| | 默认构造函数
|
|
| ~NBT_NoPrint (void) noexcept |
| | 默认析构函数
|
| template<typename... Args> |
| void | operator() (Level lvl, const std::format_string< Args... > fmt, Args &&... args) const noexcept |
| | 仿函数调用,接受打印等级和格式化字符串,忽略所有参数。
|
| template<typename... Args> |
| void | operator() (const std::format_string< Args... > fmt, Args &&... args) const noexcept |
| | 仿函数调用,默认 Info 等级,忽略所有参数。
|
忽略所有输出的打印工具类,与 NBT_Print 拥有完全相同的仿函数接口。 可用于替换 NBT_Print 以禁用所有信息输出。
◆ operator()() [1/2]
template<typename... Args>
| void NBT_NoPrint::operator() |
( |
const std::format_string< Args... > | fmt, |
|
|
Args &&... | args ) const |
|
inlinenoexcept |
仿函数调用,默认 Info 等级,忽略所有参数。
- 模板参数
-
- 参数
-
| fmt | 格式化字符串(忽略) |
| ...args | 格式化参数(忽略) |
◆ operator()() [2/2]
template<typename... Args>
| void NBT_NoPrint::operator() |
( |
Level | lvl, |
|
|
const std::format_string< Args... > | fmt, |
|
|
Args &&... | args ) const |
|
inlinenoexcept |
仿函数调用,接受打印等级和格式化字符串,忽略所有参数。
- 模板参数
-
- 参数
-
| lvl | 打印等级(忽略) |
| fmt | 格式化字符串(忽略) |
| ...args | 格式化参数(忽略) |
该类的文档由以下文件生成: