Shortcuts

Template Struct constexpr_optional_base

Page Contents

Struct Documentation

template<class T>
struct c10::constexpr_optional_base

Public Functions

constexpr constexpr_optional_base() noexcept
constexpr constexpr_optional_base(const constexpr_optional_base<T> &v)
constexpr constexpr_optional_base(constexpr_optional_base<T> &&v) noexcept(value)
constexpr constexpr_optional_base(const T &v)
constexpr constexpr_optional_base(T &&v)
template<class ...Args>
constexpr constexpr_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> constexpr constexpr_optional_base (in_place_t, std::initializer_list< U > il, Args &&...args)
~constexpr_optional_base() = default
constexpr_optional_base &operator=(const constexpr_optional_base &rhs)
constexpr_optional_base &operator=(constexpr_optional_base &&rhs) noexcept(value && value)
constexpr bool initialized() const noexcept
void setInitialized(bool init) noexcept

Public Members

bool init_
constexpr_storage_t<T> storage_

Docs

Access comprehensive developer documentation for PyTorch

View Docs

Tutorials

Get in-depth tutorials for beginners and advanced developers

View Tutorials

Resources

Find development resources and get your questions answered

View Resources