2017-09-05 08:43:13 -07:00
|
|
|
/*
|
|
|
|
|
* Copyright 2015 The WebRTC Project Authors. All rights reserved.
|
|
|
|
|
*
|
|
|
|
|
* Use of this source code is governed by a BSD-style license
|
|
|
|
|
* that can be found in the LICENSE file in the root of the source
|
|
|
|
|
* tree. An additional intellectual property rights grant can be found
|
|
|
|
|
* in the file PATENTS. All contributing project authors may
|
|
|
|
|
* be found in the AUTHORS file in the root of the source tree.
|
|
|
|
|
*/
|
|
|
|
|
|
2018-06-11 07:48:31 +00:00
|
|
|
// TODO(bugs.webrtc.org/9078): Use absl::optional directly.
|
2017-09-15 06:47:31 +02:00
|
|
|
#ifndef API_OPTIONAL_H_
|
|
|
|
|
#define API_OPTIONAL_H_
|
2017-09-05 08:43:13 -07:00
|
|
|
|
2018-06-11 07:48:31 +00:00
|
|
|
#include "absl/types/optional.h"
|
2017-09-05 08:43:13 -07:00
|
|
|
|
|
|
|
|
namespace rtc {
|
|
|
|
|
|
2018-06-11 07:48:31 +00:00
|
|
|
using absl::nullopt_t;
|
|
|
|
|
using absl::nullopt;
|
2017-09-05 08:43:13 -07:00
|
|
|
|
|
|
|
|
template <typename T>
|
2018-06-11 07:48:31 +00:00
|
|
|
using Optional = absl::optional<T>;
|
2017-09-05 08:43:13 -07:00
|
|
|
|
|
|
|
|
} // namespace rtc
|
|
|
|
|
|
2017-09-15 06:47:31 +02:00
|
|
|
#endif // API_OPTIONAL_H_
|