Symbian Developer Library

SYMBIAN OS V6.1 EDITION FOR C++

[Index] [Glossary] [Previous] [Next]



Location: e32std.h
Link against:

Class TRefByValue

TRefByValue<class T>

Support

Supported from 5.0

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.

Defined in TRefByValue:
TRefByValue(), operator T&()

See also:


Construction


TRefByValue()

TRefByValue(T& aRef);

Description

Constructs this value reference for the specified referenced object.

Parameters

T& aRef

The referenced object.

[Top]


Operator


operator T&()

operator T&();

Description

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