Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
dart::CAllocUniquePtr< T > Class Template Reference

#include <utils.h>

Inheritance diagram for dart::CAllocUniquePtr< T >:

Public Member Functions

 CAllocUniquePtr ()
 
 CAllocUniquePtr (T *value)
 
CAllocUniquePtroperator= (std::nullptr_t value)
 

Detailed Description

template<typename T>
class dart::CAllocUniquePtr< T >

Definition at line 19 of file utils.h.

Constructor & Destructor Documentation

◆ CAllocUniquePtr() [1/2]

template<typename T >
dart::CAllocUniquePtr< T >::CAllocUniquePtr ( )
inline

Definition at line 21 of file utils.h.

22 : std::unique_ptr<T, decltype(std::free)*>(nullptr, std::free) {}

◆ CAllocUniquePtr() [2/2]

template<typename T >
dart::CAllocUniquePtr< T >::CAllocUniquePtr ( T value)
inlineexplicit

Definition at line 23 of file utils.h.

24 : std::unique_ptr<T, decltype(std::free)*>(value, std::free) {}
uint8_t value

Member Function Documentation

◆ operator=()

template<typename T >
CAllocUniquePtr & dart::CAllocUniquePtr< T >::operator= ( std::nullptr_t  value)
inline

Definition at line 25 of file utils.h.

25 {
26 std::unique_ptr<T, decltype(std::free)*>::operator=(value);
27 return *this;
28 }
#define T
Definition: precompiler.cc:65

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