Quick Links:

bal | bbl | bdl | bsl

Public Member Functions

bsls::ProtocolTest_MethodReturnType 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_MethodReturnType can be converted to any non-reference type (i.e., the type can be either a value or pointer type, but not a 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_MethodReturnType::operator T (  )  const

Return a temporary value of type T. The returned object is valid but it does not have any meaningful value so it should not be used. Type T is required to be default-constructible.


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