|
SCL Feature 0.0.1
C++20 composable proxy wrapper with pluggable executor strategy
|
Composable value wrapper with pluggable executor strategy. More...
Namespaces | |
| namespace | scl |
| Root namespace of the ScL project. | |
Typedefs | |
| template<typename Value, template< typename > class... Executors> | |
| using | scl::wrapper |
Composable proxy wrapper that delegates to Value through executors. | |
Composable value wrapper with pluggable executor strategy.
A wrapper<Value, Executors...> proxies method calls to the held Value through a chain of executors. Each executor is a class template that can transparently add cross-cutting properties such as copy-on-write semantics, thread safety, or deferred invocation without modifying the wrapped type. Multiple executors are composed via left-fold; adjacent duplicates are collapsed automatically.
| using scl::wrapper |
Composable proxy wrapper that delegates to Value through executors.
Each executor is a class template E such that E<Value> proxies method calls and may add cross-cutting behaviour (e.g. COW, thread safety, deferred invocation). Executors are composed left-to-right; adjacent duplicates in the list are collapsed. Defaults to feature::inplace::plain — a zero-overhead direct proxy — when no executor is specified.
| Value | The wrapped value type. |
| Executors | Zero or more executor class templates. |