Geant4  10.03.p03
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
G4ReferenceCast.hh File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

template<typename ReturnType , typename OriginalType >
ReturnType & reference_cast (OriginalType &source)
 
template<typename ReturnType , typename OriginalType >
ReturnType & reference_cast (ReturnType &, OriginalType &source)
 

Function Documentation

template<typename ReturnType , typename OriginalType >
ReturnType& reference_cast ( OriginalType &  source)

Definition at line 51 of file G4ReferenceCast.hh.

52 {
53  return (ReturnType &) source;
54 }
template<typename ReturnType , typename OriginalType >
ReturnType& reference_cast ( ReturnType &  ,
OriginalType &  source 
)

Definition at line 58 of file G4ReferenceCast.hh.

59 {
60  return (ReturnType &) source;
61 }