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_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
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.