Quick Links: |
#include <bsls_protocoltest.h>
Public Member Functions | |
template<class T > | |
operator T & () const |
This class is a proxy for a return type designed to simplify testing implementations of protocol methods. ProtocolTest_MethodReturnRefType
can be converted to any reference type. When an object of this class is returned from a test implementation of a protocol method, it is implicitly converted to the return type of the protocol method.
See Component bsls_protocoltest
bsls::ProtocolTest_MethodReturnRefType::operator T & | ( | ) | const |
Return a T&
reference to an invalid object. The returned value should not be used and should be immediately discarded.