示例#1
0
		/// @brief Checks if the smart pointer is not nullptr.
		/// @details Allows expressions of the form <i>if (ptr)</i> or <i>if (!ptr)</i>.
		/// @return Value convertible to true, if CopiedPtr is not empty; value convertible to false otherwise
		operator SafeBool() const
		{
			return toSafeBool(mPointer != nullptr);
		}
示例#2
0
		/// @brief Check if the optional object contains a value.
		///
		operator SafeBool() const
		{
			return toSafeBool(mFilled);
		}