blob: 94126170a5a2b1863be7955635de82010a901de5 [file] [log] [blame]
kwiberg2b11fd22016-09-09 10:35:241/*
2 * Copyright 2016 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
Mirko Bonadei92ea95e2017-09-15 04:47:3111#include "api/optional.h"
kwiberg2b11fd22016-09-09 10:35:2412
13namespace rtc {
14namespace optional_internal {
15
16#if RTC_HAS_ASAN
17
kwiberg84f6a3f2017-09-05 15:43:1318void* FunctionThatDoesNothingImpl(void* x) {
19 return x;
20}
kwiberg2b11fd22016-09-09 10:35:2421
22#endif
23
Oskar Sundbome4032122017-11-15 11:24:2824struct NulloptArg {
25 constexpr NulloptArg() {}
26};
27
28static NulloptArg nullopt_arg;
29
kwiberg2b11fd22016-09-09 10:35:2430} // namespace optional_internal
Oskar Sundbome4032122017-11-15 11:24:2831
32const nullopt_t nullopt(rtc::optional_internal::nullopt_arg);
33
kwiberg2b11fd22016-09-09 10:35:2434} // namespace rtc