Lines Matching defs:optional

76 struct optional  struct
78 typedef optional<T> _self_type; /**< Type for the optional class itself. */
86 constexpr optional(std::nullptr_t) : engaged(false) in optional() function
92 constexpr optional() : engaged(false) in optional() function
103 optional(T&& other) : engaged(false) in optional() argument
116 optional(T const& other) : engaged(false) in optional() function
130optional(U&& other, typename std::enable_if<std::is_convertible<U, T>::value>::type* = 0) : engage… in optional() argument
144optional(U const& other, typename std::enable_if<std::is_convertible<U, T>::value>::type* = 0) : e… in optional() argument
158 optional(optional<T> const& other) in optional() argument
173 optional(optional<T>&& other) in optional() function
190optional(optional<U>&& other, typename std::enable_if<std::is_convertible<U, T>::value>::type* = 0) in optional() function
207optional(optional<U> const& other, typename std::enable_if<std::is_convertible<U, T>::value>::type… in optional() function
223 _self_type& operator=(optional<T>&& other) in operator =()
242 _self_type& operator=(optional<T>const& other) in operator =()
260 … std::enable_if<std::is_convertible<U, T>::value, _self_type>::type& operator=(optional<U>&& other) in operator =()
280 …::enable_if<std::is_convertible<U, T>::value, _self_type>::type& operator=(optional<U>const& other) in operator =()
291 void disengage() in disengage()
299 ~optional() in ~optional()
308 explicit operator bool() const in operator bool()
317 bool operator!() const in operator !()
327 T* operator->() in operator ->()
337 T const* operator->() const in operator ->()
346 T& operator*() { return get(); } in operator *()
352 T const& operator*() const { return get(); } in operator *()
358 T& get() { return *this->operator->(); } in get()
364 T const& get() const { return *this->operator->(); } in get()
370 void swap(optional<T>& other) in swap()
392 bool is_engaged() const in is_engaged()
402 void _construct(U&& object) in _construct()
420 void _destroy() in _destroy()
430 <sizeof(T),std::alignment_of<T>::value>::type buffer_type;
435 buffer_type buffer;
440 bool engaged;
444 struct optional<T&> struct
446 typedef optional<T&> _self_type; /**< Type for the optional class itself. */
454 constexpr optional(std::nullptr_t) : pointer(nullptr) in optional() argument
460 constexpr optional() : pointer(nullptr) in optional() function
471 optional(T& other) : pointer(&other) in optional() function
501 void disengage() in disengage()
510 explicit operator bool() const in operator bool()
519 bool operator!() const in operator !()
529 T* operator->() in operator ->()
539 T const* operator->() const in operator ->()
548 T& operator*() { return get(); } in operator *()
554 T const& operator*() const { return get(); } in operator *()
560 T& get() { return *this->operator->(); } in get()
566 T const& get() const { return *this->operator->(); } in get()
572 void swap(optional<T>& other) in swap()
581 bool is_engaged() const in is_engaged()
590 T* pointer;