mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 10:31:03 +01:00
Iterators, smart pointers, optional, and expected types depend on `operator*`. This commit adds `CppUnsafeDeref` as a core interface, with an associated function, so that the compiler can dereference user-defined C++ types. Things not implemented in this commit: * `operator*` overload resolution * SemIR lowering --------- Co-authored-by: Richard Smith <richard@metafoo.co.uk>
13 lines
539 B
Plaintext
13 lines
539 B
Plaintext
// Part of the Carbon Language project, under the Apache License v2.0 with LLVM
|
|
// Exceptions. See /LICENSE for license information.
|
|
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
|
|
|
package Core library "prelude/operators";
|
|
|
|
export import library "prelude/operators/arithmetic";
|
|
export import library "prelude/operators/as";
|
|
export import library "prelude/operators/bitwise";
|
|
export import library "prelude/operators/comparison";
|
|
export import library "prelude/operators/index";
|
|
export import library "prelude/operators/deref";
|