compare overloads

Synopses

Declared in <bsls_outputredirector.h>

Compare the scratch buffer to the specified expected NTBS.

int
compare(char const* expected) const;

Compare the scratch buffer to the specified expected buffer.

int
compare(
    char const* expected,
    size_t expectedLength) const;

Return Value

0 if the buffers match; non‐zero otherwise

Parameters

Name

Description

expected

null‐terminated string to compare against the scratch buffer

expectedLength

length of the expected buffer in bytes

Created with MrDocs