Horizon
Public Member Functions | Friends | List of all members
Catch::Detail::unique_ptr< T > Class Template Reference

A reimplementation of std::unique_ptr for improved compilation performance. More...

#include <catch_amalgamated.hpp>

Public Member Functions

constexpr unique_ptr (std::nullptr_t=nullptr)
 
constexpr unique_ptr (T *ptr)
 
template<typename U , typename = std::enable_if_t<std::is_base_of<T, U>::value>>
 unique_ptr (unique_ptr< U > &&from)
 
template<typename U , typename = std::enable_if_t<std::is_base_of<T, U>::value>>
unique_ptroperator= (unique_ptr< U > &&from)
 
 unique_ptr (unique_ptr const &)=delete
 
unique_ptroperator= (unique_ptr const &)=delete
 
 unique_ptr (unique_ptr &&rhs) noexcept
 
unique_ptroperator= (unique_ptr &&rhs) noexcept
 
T & operator* ()
 
T const & operator* () const
 
T * operator-> () noexcept
 
T const * operator-> () const noexcept
 
T * get ()
 
T const * get () const
 
void reset (T *ptr=nullptr)
 
T * release ()
 
 operator bool () const
 

Friends

void swap (unique_ptr &lhs, unique_ptr &rhs)
 

Detailed Description

template<typename T>
class Catch::Detail::unique_ptr< T >

A reimplementation of std::unique_ptr for improved compilation performance.

Does not support arrays nor custom deleters.


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