compare overloads
Declared in <bsls_outputredirector.h>
Compare the scratch buffer to the specified expected NTBS.
int
compare(char const* expected) const;
» more...
Compare the scratch buffer to the specified expected buffer.
int
compare(
char const* expected,
size_t expectedLength) const;
» more...
0 if the buffers match; non-zero otherwise
| Name | Description |
|---|---|
| expected | null-terminated string to compare against the scratch buffer |
| expectedLength | length of the expected buffer in bytes |