plugify  1.0.0.0
Public Member Functions | Protected Attributes | List of all members
plugify::Ref< T > Class Template Reference

A lightweight reference wrapper for objects of type T. More...

#include <reference_wrapper.hpp>

Public Member Functions

 Ref (T &impl) noexcept
 
 Ref (Ref const &)=default
 
 Ref (Ref &&)=default
 
bool operator== (const Ref &other) const noexcept
 
bool operator== (const T *impl) const noexcept
 
Refoperator= (const Ref &) &=default
 
Refoperator= (const Ref &) &&=delete
 
Refoperator= (Ref &&) &=default
 
Refoperator= (Ref &&) &&=delete
 
 operator bool () const noexcept
 

Protected Attributes

T * _impl
 

Detailed Description

template<typename T>
class plugify::Ref< T >

A lightweight reference wrapper for objects of type T.

This template class provides a reference-like wrapper around an object of type T, ensuring the object can be safely referenced and compared. It handles copying and moving references, while maintaining a non-owning pointer to the wrapped object.

Template Parameters
TThe type of the object to be referenced.

Definition at line 17 of file reference_wrapper.hpp.


The documentation for this class was generated from the following file: