Geant4 10.7.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4ReferenceCast.hh File Reference

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

◆ reference_cast() [1/2]

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

Definition at line 50 of file G4ReferenceCast.hh.

51{
52 return (ReturnType &) source;
53}

◆ reference_cast() [2/2]

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

Definition at line 57 of file G4ReferenceCast.hh.

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