Quick Links:

bal | bbl | bdl | bsl

Public Member Functions

bsls::ProtocolTest_MethodReturnRefType Struct Reference

#include <bsls_protocoltest.h>

List of all members.

Public Member Functions

template<class T >
 operator T & () const

Detailed Description

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


Member Function Documentation

template<class T >
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.


The documentation for this struct was generated from the following file: