// Copyright (C) 2022 The Qt Company Ltd. // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0 #ifndef OPTIONALTEST_H #define OPTIONALTEST_H #include "libsmartmacros.h" #include "smart_integer.h" #include class LIB_SMART_API StdOptionalTestBench { public: StdOptionalTestBench(); std::optional optionalInt() const; void setOptionalInt(const std::optional &i); void setOptionalIntValue(int i); std::optional optionalInteger() const; void setOptionalInteger(const std::optional &s); void setOptionalIntegerValue(Integer &s); private: std::optional m_optionalInt; std::optional m_optionalInteger; }; #endif // OPTIONALTEST_H