|
DocWire SDK
DocWire SDK: Award-winning modern data processing in C++20. SourceForge Community Choice & Microsoft support. AI-driven processing. Supports nearly 100 data formats, including email boxes and OCR. Boost efficiency in text extraction, web data extraction, data mining, document analysis. Offline processing possible for security and confidentiality
|
Binds a value to a function, enabling the creation of a function call chain. More...
#include <chaining.h>
Public Types | |
| using | invocation_args_t = tuple_utils::remove_first_t< invocation_traits::args_t< F > > |
| The type of the arguments of this functor. | |
Public Member Functions | |
| template<typename... Args> | |
| auto | operator() (Args &&... args) |
| Calls the bound function with the bound value and additional arguments. More... | |
Public Attributes | |
| ref_or_owned< V > | value |
| The bound value. | |
| ref_or_owned< F > | function |
| The bound function. | |
Binds a value to a function, enabling the creation of a function call chain.
This class template takes two type parameters: V (the value type) and F (the function type). It provides an operator() that allows the bound function to be called with the bound value and additional arguments.
| V | The type of the value to be bound. |
| F | The type of the function to be bound. |
Definition at line 42 of file chaining.h.
|
inline |
Calls the bound function with the bound value and additional arguments.
| Args | The types of the additional arguments. |
| args | The additional arguments. |
Definition at line 62 of file chaining.h.