libycxx

class template partial specialization

ycxx::inplace_function<R(A...), Capacity, Alignment>

Status
libycxx extension; include its header (not exported by import std;)
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

NameDeclaration
result_typetype alias · member type= R

Member functions

NameDeclaration
inplace_functionconstructor · 5 overloadsinplace_function() +4 more
~inplace_functiondestructor~inplace_function()
operator=operator · 4 overloadsinplace_function& operator=(const inplace_function& other) +3 more
operator()operatorR operator()(A... args) const
swapmember functionvoid swap(inplace_function& other)
operator boolconversion functionoperator bool() const

Static data members

NameDeclaration
alignmentstatic data membersize_t
capacitystatic data membersize_t