0.12.0
Freundlich's C++ toolkit
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Functions
fcppt.ref
fcppt

Description

Reference wrappers.

Functions

template<typename T >
fcppt::reference_wrapper< T
const > const 
fcppt::cref (T const &_ref)
 Creates a const reference wrapper.
 
template<typename T >
fcppt::reference_wrapper< T > const fcppt::ref (T &_ref)
 Creates a reference wrapper.
 

Function Documentation

template<typename T >
fcppt::reference_wrapper< T const> const fcppt::cref ( T const &  _ref)

Creates a const reference wrapper.

Creates a reference wrapper to T const from _ref

Template Parameters
TCan be any type and might be incomplete
Parameters
_refThe reference to wrap
template<typename T >
fcppt::reference_wrapper< T> const fcppt::ref ( T &  _ref)

Creates a reference wrapper.

Creates a reference wrapper to T from _ref

Template Parameters
TCan be any type and might be incomplete
Parameters
_refThe reference to wrap