class template partial specialization
ycxx::inplace_function<R(A...), Capacity, Alignment>
- Status
- libycxx extension; include its header (not exported by
import std;) - Header
<ycxx/functional.hpp>- Scope
ycxx
Fixed-capacity wrapper for a function signature R(Args...). The primary template documents the storage guarantees and capacity requirements.
Synopsis
template<class R, class... A, size_t Capacity, size_t Alignment>
class inplace_function<R(A...), Capacity, Alignment>;Member types
| Name | Declaration |
|---|---|
result_typetype alias · member type | = R |
Member functions
| Name | Declaration |
|---|---|
inplace_functionconstructor · 5 overloads | inplace_function() +4 more |
~inplace_functiondestructor | ~inplace_function() |
operator=operator · 4 overloads | inplace_function& operator=(const inplace_function& other) +3 more |
operator()operator | R operator()(A... args) const |
swapmember function | void swap(inplace_function& other) |
operator boolconversion function | operator bool() const |