TensorFlow Serving C++ API Documentation
|
#include <any_ptr.h>
Public Member Functions | |
UniqueAnyPtr ()=default | |
UniqueAnyPtr is void and null by default. | |
UniqueAnyPtr (std::nullptr_t) | |
template<typename T > | |
UniqueAnyPtr (std::unique_ptr< T > ptr) | |
Construct from a unique pointer to any type. | |
UniqueAnyPtr (const UniqueAnyPtr &other)=delete | |
UniqueAnyPtr & | operator= (const UniqueAnyPtr &other)=delete |
UniqueAnyPtr (UniqueAnyPtr &&other) | |
UniqueAnyPtr & | operator= (UniqueAnyPtr &&other) |
template<typename T > | |
T * | get () const |
Accessor for the underlying pointer if it is of type T, otherwise null. | |
const AnyPtr & | as_any_ptr () const |
Accessor for the underlying pointer as an AnyPtr. | |
void | swap (UniqueAnyPtr &other) |
Like AnyPtr, but owns the pointed-to object (calls delete upon destruction). This class is move-only, like std::unique_ptr.