![]() |
Lumiera 0.pre.04
»edit your freedom«
|
#include "lib/meta/function-closure.hpp"
Bind a specific argument to an arbitrary value.
Notably this "value" might be another binder.
Definition at line 405 of file function-closure.hpp.
Static Public Member Functions | |
| template<class FUN , class VAL > | |
| static auto | reduced (FUN &&f, VAL &&val) |
Private Types | |
| enum | { ARG_CNT = count<ArgsList>() } |
| using | Args = _Fun< SIG >::Args |
| using | Ret = _Fun< SIG >::Ret |
| using | ArgsList = Args::List |
| using | ValList = Types< X >::List |
| using | RemainingFront = Splice< ArgsList, ValList, pos >::Front |
| using | RemainingBack = Splice< ArgsList, ValList, pos >::Back |
| using | PlaceholdersBefore = func::PlaceholderTuple< RemainingFront >::List |
| using | PlaceholdersBehind = func::PlaceholderTuple< RemainingBack, pos+1 >::List |
| using | PreparedArgsRaw = typename Append< typename Append< PlaceholdersBefore,ValList >::List,PlaceholdersBehind >::List |
| using | PreparedArgs = Prefix< PreparedArgsRaw, ARG_CNT > |
| using | ReducedArgs = Append< RemainingFront, RemainingBack >::List |
| using | PreparedArgTypes = Types< PreparedArgs >::Seq |
| using | RemainingArgs = Types< ReducedArgs >::Seq |
| template<class SRC , class TAR , size_t i> | |
| using | IdxSelector = PartiallyInitTuple< SRC, TAR, pos >::template IndexMapper< i > |
| using | BuildPreparedArgs = TupleConstructor< PreparedArgTypes, IdxSelector > |
Definition at line 407 of file function-closure.hpp.
Definition at line 408 of file function-closure.hpp.
Definition at line 409 of file function-closure.hpp.
Definition at line 410 of file function-closure.hpp.
|
private |
Definition at line 414 of file function-closure.hpp.
|
private |
Definition at line 415 of file function-closure.hpp.
|
private |
Definition at line 416 of file function-closure.hpp.
|
private |
Definition at line 417 of file function-closure.hpp.
|
private |
Definition at line 419 of file function-closure.hpp.
|
private |
Definition at line 423 of file function-closure.hpp.
|
private |
Definition at line 424 of file function-closure.hpp.
|
private |
Definition at line 426 of file function-closure.hpp.
|
private |
Definition at line 427 of file function-closure.hpp.
|
private |
Definition at line 431 of file function-closure.hpp.
Definition at line 433 of file function-closure.hpp.
| Enumerator | |
|---|---|
| ARG_CNT | |
Definition at line 412 of file function-closure.hpp.
Definition at line 440 of file function-closure.hpp.
References lib::meta::func::bindArgTuple().
Referenced by lib::meta::func::bindFirst(), lib::meta::func::bindLast(), and FunctionComposition_test::check_bindToArbitraryParameter().
Here is the call graph for this function:
Here is the caller graph for this function:
Collaboration diagram for BindToArgument< SIG, X, pos >: