3.8.0
Freundlich's C++ toolkit
Public Types | Public Member Functions
fcppt::reference< Type > Class Template Reference

Detailed Description

template<typename Type>
class fcppt::reference< Type >

A simple reference wrapper that supports incomplete types.

C++11's reference is also a function call wrapper, which implies that the type it holds must be complete. Here, we drop this requirement.

Public Types

using type = Type
 

Public Member Functions

 reference (Type &&)=delete
 
 reference (type &) noexcept
 
typeget () const noexcept
 
typeoperator-> () const noexcept
 

Member Typedef Documentation

◆ type

template<typename Type >
using fcppt::reference< Type >::type = Type

Constructor & Destructor Documentation

◆ reference() [1/2]

template<typename Type >
fcppt::reference< Type >::reference ( Type &&  )
delete

◆ reference() [2/2]

template<typename Type >
fcppt::reference< Type >::reference ( type )
explicitnoexcept

Member Function Documentation

◆ get()

template<typename Type >
type& fcppt::reference< Type >::get ( ) const
noexcept

◆ operator->()

template<typename Type >
type* fcppt::reference< Type >::operator-> ( ) const
noexcept