|
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
|
Provides transformations for tuples. More...
Typedefs | |
| template<std::size_t Start, std::size_t Length, typename T > | |
| using | subrange_t = decltype(subrange< Start, Length >(std::declval< T >())) |
| Type alias for the type of the result of subrange of a tuple. More... | |
| template<typename T > | |
| using | remove_first_t = decltype(remove_first(std::declval< T >())) |
| Type alias for the type of the result of removing the first element from a tuple. More... | |
| template<typename T > | |
| using | remove_last_t = decltype(remove_last(std::declval< T >())) |
| Type alias for the type of the result of removing the last element from a tuple. More... | |
| template<typename T > | |
| using | first_element_t = decltype(first_element(std::declval< T >())) |
| Type alias for the type of the first element of a tuple. More... | |
| template<typename T > | |
| using | last_element_t = decltype(last_element(std::declval< T >())) |
| Type alias for the type of the last element of a tuple. More... | |
Functions | |
| template<std::size_t Start, std::size_t Length, typename... Ts> | |
| auto | subrange (const std::tuple< Ts... > &tuple) |
| Returns subrange of a tuple. More... | |
| template<typename T > | |
| auto | remove_first (T &&tuple) |
| Removes the first element from a tuple. More... | |
| template<typename T > | |
| auto | remove_last (T &&tuple) |
| Removes the last element from a tuple. More... | |
| template<typename T > | |
| auto | first_element (T &&tuple) |
| Returns the first element of a tuple. More... | |
| template<typename T > | |
| auto | last_element (T &&tuple) |
| Returns the last element of a tuple. More... | |
Provides transformations for tuples.
This namespace contains transformations that can be used to manipulate tuple types.
| using docwire::tuple_utils::first_element_t = typedef decltype(first_element(std::declval<T>())) |
Type alias for the type of the first element of a tuple.
| T | The tuple type to return the first element of. |
Definition at line 121 of file tuple_utils.h.
| using docwire::tuple_utils::last_element_t = typedef decltype(last_element(std::declval<T>())) |
Type alias for the type of the last element of a tuple.
| T | The tuple type to return the last element of. |
Definition at line 142 of file tuple_utils.h.
| using docwire::tuple_utils::remove_first_t = typedef decltype(remove_first(std::declval<T>())) |
Type alias for the type of the result of removing the first element from a tuple.
| T | The tuple type to remove the first element from. |
Definition at line 76 of file tuple_utils.h.
| using docwire::tuple_utils::remove_last_t = typedef decltype(remove_last(std::declval<T>())) |
Type alias for the type of the result of removing the last element from a tuple.
| T | The tuple type to remove the last element from. |
Definition at line 100 of file tuple_utils.h.
| using docwire::tuple_utils::subrange_t = typedef decltype(subrange<Start, Length>(std::declval<T>())) |
Type alias for the type of the result of subrange of a tuple.
| T | The tuple type to return the subrange of. |
Definition at line 52 of file tuple_utils.h.
| auto docwire::tuple_utils::first_element | ( | T && | tuple | ) |
Returns the first element of a tuple.
| tuple | The tuple to return the first element of. |
Definition at line 109 of file tuple_utils.h.
| auto docwire::tuple_utils::last_element | ( | T && | tuple | ) |
Returns the last element of a tuple.
| tuple | The tuple to return the last element of. |
Definition at line 130 of file tuple_utils.h.
| auto docwire::tuple_utils::remove_first | ( | T && | tuple | ) |
Removes the first element from a tuple.
This function provides a way to remove the first element from a tuple, resulting in a new tuple with the remaining elements.
| tuple | The tuple to remove the first element from. |
Definition at line 64 of file tuple_utils.h.
| auto docwire::tuple_utils::remove_last | ( | T && | tuple | ) |
Removes the last element from a tuple.
This function provides a way to remove the last element from a tuple, resulting in a new tuple with the remaining elements.
| tuple | The tuple to remove the last element from. |
Definition at line 88 of file tuple_utils.h.
| auto docwire::tuple_utils::subrange | ( | const std::tuple< Ts... > & | tuple | ) |
Returns subrange of a tuple.
| t | The tuple to return the subrange of. |
| Start | The start index of the subrange. |
| Length | The length of the subrange. |
Definition at line 35 of file tuple_utils.h.