Skip to content

Commit cf37e19

Browse files
committed
Update docs
1 parent 1dc896a commit cf37e19

2 files changed

Lines changed: 2 additions & 5 deletions

File tree

docs/spec/make_proxy_view.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,12 @@
55
> Namespace: `pro::inline v4`
66
> Since: 3.3.0
77
8-
The definition of `make_proxy_view` makes use of an exposition-only class template *observer-ptr*. `observer-ptr<T>` contains a raw pointer to an object of type `T`, and provides `operator*` for access with the same qualifiers.
9-
108
```cpp
119
template <facade F, class T>
1210
proxy_view<F> make_proxy_view(T& value) noexcept;
1311
```
1412
15-
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.
13+
Equivalent to `return make_proxy_ref<observer_facade<F>>(value)`.
1614
1715
## Return Value
1816

include/proxy/v4/proxy.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1825,8 +1825,7 @@ constexpr proxy<F> make_proxy_ref(T& value) noexcept {
18251825

18261826
template <facade F, class T>
18271827
constexpr proxy_view<F> make_proxy_view(T& value) noexcept {
1828-
return proxy_view<F>{
1829-
details::observer_ptr<T&, const T&, T&&, const T&&>{value}};
1828+
return make_proxy_ref<observer_facade<F>>(value);
18301829
}
18311830

18321831
#if __STDC_HOSTED__

0 commit comments

Comments
 (0)