[ Web Proxy ]
URL:
Viewing: https://ngcpp.github.io/proxy/spec/proxiable_target [Back]  [Original]

proxiable_target - Proxy 4
Skip to content
logo [logo]
Proxy 4
proxiable_target
[Go]
GitHub
logo [logo] Proxy 4
Table of contents

Concept proxiable_target

Header: proxy.h
Module: proxy
Namespace: pro::inline v4
Since: 3.3.0

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

See make_proxy_view for the definition of the exposition-only class template observer-ptr.

Example

#include <proxy/proxy.h>

struct Runnable : pro::facade_builder                                    //
                  ::add_convention<pro::operator_dispatch<"()">, void()> //
                  ::build {};

int main() {
  auto fun = [] {};
  static_assert(pro::proxiable_target<decltype(fun), Runnable>);
  static_assert(!pro::proxiable_target<int, Runnable>);
}

See Also

April 20, 2026

Web Proxy Viewer  |  New URL  |  Original Page