OnnxRuntime
Ort::Unowned< T > Struct Template Reference

Wraps an object that inherits from Ort::Base and stops it from deleting the contained pointer on destruction. More...

#include <onnxruntime_cxx_api.h>

Inherits T.

Public Member Functions

 Unowned (typename T::contained_type *p)
 
 Unowned (Unowned &&v)
 
 ~Unowned ()
 

Detailed Description

template<typename T>
struct Ort::Unowned< T >

Wraps an object that inherits from Ort::Base and stops it from deleting the contained pointer on destruction.

This has the effect of making it not own the memory held by Ort::Base.

Constructor & Destructor Documentation

◆ Unowned() [1/2]

template<typename T >
Ort::Unowned< T >::Unowned ( typename T::contained_type *  p)
inline

◆ Unowned() [2/2]

template<typename T >
Ort::Unowned< T >::Unowned ( Unowned< T > &&  v)
inline

◆ ~Unowned()

template<typename T >
Ort::Unowned< T >::~Unowned ( )
inline