Diag-Client-Lib
diagnostic_client_result.h
Go to the documentation of this file.
1 /* Diagnostic Client library
2 * Copyright (C) 2024 Avijit Dey
3 *
4 * This Source Code Form is subject to the terms of the Mozilla Public
5 * License, v. 2.0. If a copy of the MPL was not distributed with this
6 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
7 */
8 #ifndef DIAGNOSTIC_CLIENT_LIB_APPL_INCLUDE_DIAGNOSTIC_CLIENT_RESULT_H
9 #define DIAGNOSTIC_CLIENT_LIB_APPL_INCLUDE_DIAGNOSTIC_CLIENT_RESULT_H
10 
11 #include <optional>
12 #include <type_traits>
13 #include <utility>
14 #include <variant>
15 
17 #include "core/include/result.h"
18 
19 namespace diag {
20 namespace client {
21 
30 template<typename T, typename E = core_type::ErrorCode>
32 
33 } // namespace client
34 } // namespace diag
35 
36 #endif //DIAGNOSTIC_CLIENT_LIB_APPL_INCLUDE_DIAGNOSTIC_CLIENT_RESULT_H
Class type to contains a value (of type ValueType), or an error (of type ErrorType)
Definition: result.h:29