Luanti 5.11.0-dev
 
Loading...
Searching...
No Matches
ConstSharedPtr< T > Class Template Reference

#include <pointer.h>

Public Member Functions

 ConstSharedPtr (T *ptr)
 
 ConstSharedPtr (const std::shared_ptr< T > &ptr)
 
const T * get () const noexcept
 
const T & operator* () const noexcept
 
const T * operator-> () const noexcept
 

Private Attributes

std::shared_ptr< T > ptr
 

Constructor & Destructor Documentation

◆ ConstSharedPtr() [1/2]

template<typename T >
ConstSharedPtr< T >::ConstSharedPtr ( T * ptr)
inline

◆ ConstSharedPtr() [2/2]

template<typename T >
ConstSharedPtr< T >::ConstSharedPtr ( const std::shared_ptr< T > & ptr)
inline

Member Function Documentation

◆ get()

template<typename T >
const T * ConstSharedPtr< T >::get ( ) const
inlinenoexcept

◆ operator*()

template<typename T >
const T & ConstSharedPtr< T >::operator* ( ) const
inlinenoexcept

◆ operator->()

template<typename T >
const T * ConstSharedPtr< T >::operator-> ( ) const
inlinenoexcept

Member Data Documentation

◆ ptr

template<typename T >
std::shared_ptr<T> ConstSharedPtr< T >::ptr
private

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