blob: eada13fa9b7e87d1b8c08c72899f206f8ea51979 [file] [log] [blame]
kwiberg84f6a3f2017-09-05 08:43:13 -07001/*
2 * Copyright 2015 The WebRTC Project Authors. All rights reserved.
3 *
4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree.
9 */
10
Danil Chapovalov9dce71b2018-06-11 07:48:31 +000011// TODO(bugs.webrtc.org/9078): Use absl::optional directly.
Mirko Bonadei92ea95e2017-09-15 06:47:31 +020012#ifndef API_OPTIONAL_H_
13#define API_OPTIONAL_H_
kwiberg84f6a3f2017-09-05 08:43:13 -070014
Danil Chapovalov9dce71b2018-06-11 07:48:31 +000015#include "absl/types/optional.h"
kwiberg84f6a3f2017-09-05 08:43:13 -070016
17namespace rtc {
18
Danil Chapovalov9dce71b2018-06-11 07:48:31 +000019using absl::nullopt_t;
20using absl::nullopt;
kwiberg84f6a3f2017-09-05 08:43:13 -070021
22template <typename T>
Danil Chapovalov9dce71b2018-06-11 07:48:31 +000023using Optional = absl::optional<T>;
kwiberg84f6a3f2017-09-05 08:43:13 -070024
25} // namespace rtc
26
Mirko Bonadei92ea95e2017-09-15 06:47:31 +020027#endif // API_OPTIONAL_H_