Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/spec/make_proxy_view.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ template <facade F, class T>
proxy_view<F> make_proxy_view(T& value) noexcept;
```

Creates a `proxy_view<F>` object containing a value `p` of type `observer-ptr<T>`, where `*p` is direct-non-list-initialized with `&value`. If [`proxiable_target<T, F>`](proxiable_target.md) is `false`, the program is ill-formed and diagnostic messages are generated.
Creates a `proxy_view<F>` object containing a value `p` of type `observer-ptr<T>`, where `*p` is direct-non-list-initialized with `std::addressof(value)`. If [`proxiable_target<T, F>`](proxiable_target.md) is `false`, the program is ill-formed and diagnostic messages are generated.

## Return Value

Expand Down
2 changes: 1 addition & 1 deletion docs/spec/proxiable_target.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

```cpp
template <class T, class F>
concept proxiable_target = proxiable<observer-ptr<T>, F>;
concept proxiable_target = proxiable<observer-ptr<T>, observer_facade<F>>;
```

See [`make_proxy_view`](make_proxy_view.md) for the definition of the exposition-only class template *observer-ptr*.
Expand Down
2 changes: 1 addition & 1 deletion docs/spec/skills_as_view.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ using as_view = /* see below */;

The alias template `as_view` modifies a specialization of [`basic_facade_builder`](basic_facade_builder/README.md) to allow implicit conversion from [`proxy`](proxy/README.md)`<F>` to [`proxy_view`](proxy_view.md)`<F>`, where `F` is a built [facade](facade.md) type.

Let `p` be a value of type `proxy<F>`, `ptr` be the contained value of `p` (if any), the conversion from type `proxy<F>&` to type `proxy_view<F>` is equivalent to `return observer-ptr{std::addressof(*ptr)}` if `p` contains a value, or otherwise equivalent to `return nullptr`. `observer-ptr` is an exposition-only type that `*observer-ptr`, `*std::as_const(observer-ptr)`, `*std::move(observer-ptr)` and `*std::move(std::as_const(observer-ptr))` are equivalent to `*ptr`, `*std::as_const(ptr)`, `*std::move(ptr)` and `*std::move(std::as_const(ptr))`, respectively.
Let `p` be a value of type `proxy<F>`, `ptr` be the contained value of `p` (if any), the conversion from type `proxy<F>&` to type `proxy_view<F>` is equivalent to `return make_proxy_view<F>(*ptr)` if `p` contains a value, or otherwise equivalent to `return nullptr`.

## Notes

Expand Down
Loading