• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright 2021 Google LLC.
3  *
4  * Use of this source code is governed by a BSD-style license that can be
5  * found in the LICENSE file.
6  */
7 
8 #ifndef SkTOptional_DEFINED
9 #define SkTOptional_DEFINED
10 
11 #include <optional>
12 
13 namespace skstd {
14 
15 template <typename T> using optional = std::optional<T>;
16 using nullopt_t = std::nullopt_t;
17 inline constexpr nullopt_t nullopt = std::nullopt;
18 
19 } // namespace skstd
20 
21 #endif
22