MeshLib Documentation
Loading...
Searching...
No Matches
MR::UniquePtr< T > Struct Template Reference

#include <MRUniquePtr.h>

+ Inheritance diagram for MR::UniquePtr< T >:

Public Member Functions

 UniquePtr () noexcept=default
 
 UniquePtr (const UniquePtr &) noexcept
 
 UniquePtr (UniquePtr &&) noexcept=default
 
UniquePtroperator= (const UniquePtr &) noexcept
 
UniquePtroperator= (UniquePtr &&) noexcept=default
 
UniquePtroperator= (std::unique_ptr< T > &&b) noexcept
 

Detailed Description

template<typename T>
struct MR::UniquePtr< T >

This class wraps std::unique_ptr adding copy constructor and copy assignment operator, which do nothing, but allow putting this as a member in copyable classes

Constructor & Destructor Documentation

◆ UniquePtr() [1/3]

template<typename T >
MR::UniquePtr< T >::UniquePtr ( )
defaultnoexcept

◆ UniquePtr() [2/3]

template<typename T >
MR::UniquePtr< T >::UniquePtr ( const UniquePtr< T > & )
inlinenoexcept

◆ UniquePtr() [3/3]

template<typename T >
MR::UniquePtr< T >::UniquePtr ( UniquePtr< T > && )
defaultnoexcept

Member Function Documentation

◆ operator=() [1/3]

template<typename T >
UniquePtr & MR::UniquePtr< T >::operator= ( const UniquePtr< T > & )
inlinenoexcept

◆ operator=() [2/3]

template<typename T >
UniquePtr & MR::UniquePtr< T >::operator= ( std::unique_ptr< T > && b)
inlinenoexcept

◆ operator=() [3/3]

template<typename T >
UniquePtr & MR::UniquePtr< T >::operator= ( UniquePtr< T > && )
defaultnoexcept

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