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
docwire::chaining::value_to_function_binding< V, F > Struct Template Reference

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.
 

Detailed Description

template<invocation_concepts::not_invocable V, invocation_concepts::invocable F>
struct docwire::chaining::value_to_function_binding< V, F >

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.

Template Parameters
VThe type of the value to be bound.
FThe type of the function to be bound.
See also
docwire::invocation_concepts::not_invocable
docwire::invocation_concepts::invocable

Definition at line 42 of file chaining.h.

Member Function Documentation

◆ operator()()

template<invocation_concepts::not_invocable V, invocation_concepts::invocable F>
template<typename... Args>
auto docwire::chaining::value_to_function_binding< V, F >::operator() ( Args &&...  args)
inline

Calls the bound function with the bound value and additional arguments.

Template Parameters
ArgsThe types of the additional arguments.
Parameters
argsThe additional arguments.
Returns
The result of the function call.

Definition at line 62 of file chaining.h.


The documentation for this struct was generated from the following file: