9#ifndef QEVERCLOUD_OPTIONAL_H
10#define QEVERCLOUD_OPTIONAL_H
136 operator const T&()
const
140 "qevercloud::Optional: nonexistent value access");
155 "qevercloud::Optional: nonexistent value access");
171 "qevercloud::Optional: nonexistent value access");
208 "qevercloud::Optional: nonexistent value access");
310 "qevercloud::Optional: nonexistent value access");
323 "qevercloud::Optional: nonexistent value access");
338 return m_isSet ? m_value : defaultValue;
347 if (m_isSet != other.m_isSet) {
351 return !m_isSet || (m_value == other.m_value);
370 return m_value == other;
383 swap(first.m_isSet, second.m_isSet);
384 swap(first.m_value, second.m_value);
402 swap(m_value, other);
409 swap(m_value, other);
Definition EverCloudException.h:33
Optional(T &&other)
Definition Optional.h:398
Optional(const T &value)
Definition Optional.h:75
void clear()
Definition Optional.h:236
Optional & operator=(const Optional< X > &o)
Definition Optional.h:103
Optional()
Definition Optional.h:49
friend void swap(Optional &first, Optional &second)
Definition Optional.h:380
Optional & operator=(const T &value)
Definition Optional.h:113
Optional & operator=(T &&other)
Definition Optional.h:405
Optional & init()
Definition Optional.h:265
const T * operator->() const
Definition Optional.h:319
Optional & operator=(const Optional &o)
Definition Optional.h:92
const T & ref() const
Definition Optional.h:167
T * operator->()
Definition Optional.h:306
Optional(const X &value)
Definition Optional.h:84
Optional(Optional &&other)
Definition Optional.h:387
T value(T defaultValue=T()) const
Definition Optional.h:336
bool operator!=(const T &other) const
Definition Optional.h:373
T & ref()
Definition Optional.h:204
Optional & operator=(const X &value)
Definition Optional.h:124
bool isEqual(const Optional< T > &other) const
Definition Optional.h:345
bool operator==(const T &other) const
Definition Optional.h:364
Optional(const Optional< X > &o)
Definition Optional.h:67
bool operator==(const Optional< T > &other) const
Definition Optional.h:354
Optional & operator=(Optional &&other)
Definition Optional.h:392
bool isSet() const
Checks if value is set.
Definition Optional.h:220
Optional(const Optional &o)
Definition Optional.h:57
bool operator!=(const Optional< T > &other) const
Definition Optional.h:359
Definition AsyncResult.h:21