Template Struct optional_base

Page Contents

Struct Documentation

template<class T>
struct optional_base

Public Functions

inline constexpr optional_base() noexcept
inline explicit constexpr optional_base(const optional_base<T> &v)
inline explicit constexpr optional_base(const T &v)
inline explicit constexpr optional_base(optional_base<T> &&v) noexcept(std::is_nothrow_move_constructible<T>::value)
inline explicit constexpr optional_base(T &&v)
template<class ...Args>
inline explicit optional_base(in_place_t, Args&&... args)
template<class U, class ...Args, typename std::enable_if<std::is_constructible<T, std::initializer_list<U>>::value, bool>::type = false>
inline explicit optional_base(in_place_t, std::initializer_list<U> il, Args&&... args)
inline optional_base &operator=(const optional_base &rhs)
inline optional_base &operator=(optional_base &&rhs) noexcept(std::is_nothrow_move_assignable<T>::value && std::is_nothrow_move_constructible<T>::value)
inline ~optional_base()
inline constexpr bool initialized() const noexcept
inline void setInitialized(bool init) noexcept

Public Members

bool init_
storage_t<T> storage_


Access comprehensive developer documentation for PyTorch

View Docs


Get in-depth tutorials for beginners and advanced developers

View Tutorials


Find development resources and get your questions answered

View Resources