Write the state of ta to stream and return stream.
Synopsis
Declared in <bslma_testallocator.h>
template<class t_OS>
t_OS&
operator<<(
t_OS& stream,
TestAllocator const& ta);
|
Note
|
This function is a hidden friend of TestAllocator, declared only inside that class: it can be found only through argument-dependent lookup. |
Description
Write the accumulated state information held in the specified allocator ta to the specified stream in a reasonable (multi‐line) format identical to the format produced by ta.print() and return a reference offering modifiable access to stream. Output is performed via calls to stream.write(s, count), where write is a required method of class t_OS, s is a const char* holding the formatted output, and count is the length of s excluding any null terminator. Note that std::ostream meets the requirements for t_OS.
Return Value
reference offering modifiable access to stream
Parameters
Name |
Description |
stream |
The output stream to which to write. |
ta |
The test allocator whose state is written. |
Created with MrDocs