mirror of
https://github.com/mollyim/webrtc.git
synced 2025-05-16 23:30:48 +01:00

This reverts commit 6f5b0f920a
.
Reason for revert: Breaks internal project.
Original change's description:
> Remove rtc::Optional alias and api:optional target
>
> Update left-overs where old target still was used.
>
> Bug: webrtc:9078
> Change-Id: I2162c928091fc4ff1dea33a3f03adbe47207d206
> Reviewed-on: https://webrtc-review.googlesource.com/84740
> Commit-Queue: Danil Chapovalov <danilchap@webrtc.org>
> Reviewed-by: Karl Wiberg <kwiberg@webrtc.org>
> Cr-Commit-Position: refs/heads/master@{#23913}
TBR=danilchap@webrtc.org,kwiberg@webrtc.org
Change-Id: I95f5ec33520b823c3d0c9cb83d945d6a15355367
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Bug: webrtc:9078
Reviewed-on: https://webrtc-review.googlesource.com/88140
Reviewed-by: Ilya Nikolaevskiy <ilnik@webrtc.org>
Commit-Queue: Ilya Nikolaevskiy <ilnik@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#23921}
27 lines
722 B
C++
27 lines
722 B
C++
/*
|
|
* 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.
|
|
*/
|
|
|
|
// TODO(bugs.webrtc.org/9078): Use absl::optional directly.
|
|
#ifndef API_OPTIONAL_H_
|
|
#define API_OPTIONAL_H_
|
|
|
|
#include "absl/types/optional.h"
|
|
|
|
namespace rtc {
|
|
|
|
using absl::nullopt_t;
|
|
using absl::nullopt;
|
|
|
|
template <typename T>
|
|
using Optional = absl::optional<T>;
|
|
|
|
} // namespace rtc
|
|
|
|
#endif // API_OPTIONAL_H_
|