BloombergLP::bsls::OutputRedirector::compare

compare overloads

Synopses

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...

Return Value

0 if the buffers match; non-zero otherwise

Parameters

NameDescription
expectednull-terminated string to compare against the scratch buffer
expectedLengthlength of the expected buffer in bytes