Loading...
Searching...
No Matches
fcpp::WhenFalse< WhenTrueQueriedT, T > Class Template Reference
False / else block query of Queryable<T>::branch method. More...
#include <query.h>
Public Member Functions | |
| WhenFalse (Queryable< WhenTrueQueriedT > when_true_queried, std::vector< T > when_false_items) | |
| Construct a new WhereFalse object from a sequence of transformed items from the true branch of the predicate and the not yet transformed false branch sequence. | |
| WhenFalse (const WhenFalse &)=delete | |
| WhenFalse & | operator= (const WhenFalse &)=delete |
| template<typename WhenFalseQuery, typename WhenFalseQueriedT = typename std::invoke_result_t< WhenFalseQuery, Queryable<T>>::item_type> | |
| Merge< WhenTrueQueriedT, WhenFalseQueriedT > | when_false (WhenFalseQuery when_false_query) |
| Projects each item of the false branched sequence into a new form from the Queryable<T>::branch of the predicate. | |
Detailed Description
template<typename WhenTrueQueriedT, typename T>
class fcpp::WhenFalse< WhenTrueQueriedT, T >
class fcpp::WhenFalse< WhenTrueQueriedT, T >
False / else block query of Queryable<T>::branch method.
- Template Parameters
-
WhenTrueQueried Type of items projected from true / if block query. T Type of items to query over.
Constructor & Destructor Documentation
◆ WhenFalse()
template<typename WhenTrueQueriedT, typename T>
|
inlineexplicit |
Construct a new WhereFalse object from a sequence of transformed items from the true branch of the predicate and the not yet transformed false branch sequence.
- Parameters
-
when_true_queried Queryable that is the transformed sequence of true branched items of the predicate. when_false_items Sequence of false branched items of the predicate to query over.
Member Function Documentation
◆ when_false()
template<typename WhenTrueQueriedT, typename T>
template<typename WhenFalseQuery, typename WhenFalseQueriedT = typename std::invoke_result_t< WhenFalseQuery, Queryable<T>>::item_type>
|
inline |
Projects each item of the false branched sequence into a new form from the Queryable<T>::branch of the predicate.
- Template Parameters
-
WhenFalseQuery Type of transform function. WhenFalseQueriedT Type of items that will be transformed.
- Parameters
-
when_false_query Transform function that projects each item into a new form.
The documentation for this class was generated from the following file:
- /home/runner/work/fluentcpp/fluentcpp/include/fluentcpp/query.h