Merge result of both if and else block queries from Queryable<T>::branch method.
More...
#include <query.h>
|
| | Merge (Queryable< TrueT > true_queried, Queryable< FalseT > false_queried) |
| | Construct a new Merge object from the transformed true and false branches of the predicate.
|
|
| Merge (const Merge &)=delete |
|
Merge & | operator= (const Merge &)=delete |
| Queryable< std::tuple< TrueT, FalseT > > | merge (bool truncate=false) |
| | Merges the true and false branch sequences as a zip.
|
template<typename TrueT, typename FalseT>
class fcpp::Merge< TrueT, FalseT >
Merge result of both if and else block queries from Queryable<T>::branch method.
- Template Parameters
-
| FalseT | Type of items projected from false / else block query. |
| TrueT | Type of items projected from true / if block query. |
◆ Merge()
template<typename TrueT, typename FalseT>
Construct a new Merge object from the transformed true and false branches of the predicate.
- Parameters
-
| true_queried | Queryable that is the transformed sequence of true branched items of the predicate. |
| false_queried | Queryable that is the transformed sequence of false branched items of the predicate. |
◆ merge()
template<typename TrueT, typename FalseT>
| Queryable< std::tuple< TrueT, FalseT > > fcpp::Merge< TrueT, FalseT >::merge |
( |
bool | truncate = false | ) |
|
|
inline |
Merges the true and false branch sequences as a zip.
- Parameters
-
| truncate | Truncate the combined sequence by the minimum size of the two. If false both T and U must have a default constructor so default values can be provided if one sequence is larger than the other. |
- Returns
- Queryable<std::tuple<TrueT, FalseT>>
The documentation for this class was generated from the following file:
- /home/runner/work/fluentcpp/fluentcpp/include/fluentcpp/query.h