Base class for string tokens, and algorithm parameters
Name | Description |
---|---|
arg [constructor] | Default constructor Default move constructor Deleted copy constructor |
operator= | Deleted copy assignment Deleted move assignment |
prepare | Return a modifiable character buffer |
~arg [destructor] | Virtual destructor |
This abstract interface provides a means for an algorithm to generically obtain a modifiable, contiguous character buffer of prescribed size. As the author of an algorithm simply declare an rvalue reference as a parameter type.
Instances of this type are intended only to be used once and then destroyed.
temporary instance of `arg` to be used for writing:
void algorithm( string_token::arg&& dest );
To implement the interface for your type or use-case, derive from the class and implement the prepare function.