TRefByValue Class Reference

#include <e32cmn.h>

Link against: eposprvtyp.lib

class TRefByValue
Public Member Functions
TRefByValue(T &)
operator T &()

Detailed Description

A templated class which encapsulates a reference to an object within a wrapper.

The wrapper object can be passed to a function as a value type. This allows a reference to be passed to a function as a value type.

This wrapper object is commonly termed a value reference.

Constructor & Destructor Documentation

TRefByValue ( T & )

TRefByValue(T &aRef)[inline]

Constructs this value reference for the specified referenced object.

ParameterDescription
aRefThe referenced object.

Member Function Documentation

operator T & ( )

operator T &()[inline]

Gets a reference to the object encapsulated inside this value reference.