Template withValidation
Returns a new writer that wraps the original one, applying a validation to every output operation.
validationFun
must return a value that fulfills the cursor API. This template
returns instances of CheckedWriter
.
Arguments
template withValidation(alias validationFun, Params...);
Functions
Function name | Description |
---|---|
withValidation |
Parameters
Name | Description |
---|---|
validationFun | a function or function template that produces an instance of a validating cursor |
Params | the compile-time parameters used to instantiate validationFun |
writer | the original writer, to be enhanced with the validation |
args | the runtime arguments passed to validationFun |