Symbian
Symbian Developer Library

SYMBIAN OS V9.4

Feedback

[Index] [Previous] [Next]

#include <e32cmn.h>

Class TRefByValue

class TRefByValue;

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.

Members

Defined in TRefByValue:


Construction and destruction


TRefByValue(T &)

inline TRefByValue(T &aRef);

Description

Constructs this value reference for the specified referenced object.

Parameters

T &aRef

The referenced object.

[Top]


Member functions


operator T &()

inline operator T &();

Description

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

Return value