HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
optional.h
Go to the documentation of this file.
1 // Copyright (c) Microsoft Corporation. All rights reserved.
2 // Licensed under the MIT License.
3 
4 #pragma once
5 #include <optional>
6 
7 namespace onnxruntime {
8 
9 using std::optional;
10 
11 #ifndef ORT_NO_EXCEPTIONS
12 using std::bad_optional_access;
13 #endif
14 
15 using std::nullopt;
16 using std::nullopt_t;
17 
18 using std::in_place;
19 using std::in_place_t;
20 
21 using std::make_optional;
22 
23 } // namespace onnxruntime