True / if block query of Queryable<T>::branch method.
More...
#include <query.h>
|
| | WhenTrue (std::vector< T > when_true_items, std::vector< T > when_false_items) |
| | Construct a new WhereTrue object from a sequence of true and false branched items of the predicate that are to be transformed.
|
|
| WhenTrue (const WhenTrue &)=delete |
|
WhenTrue & | operator= (const WhenTrue &)=delete |
| template<typename WhenTrueQuery, typename WhenTrueQueriedT = typename std::invoke_result_t<WhenTrueQuery, Queryable<T>>::item_type> |
| WhenFalse< WhenTrueQueriedT, T > | when_true (WhenTrueQuery when_true_query) |
| | Projects each item of the true branched sequence into a new form from the Queryable<T>::branch of the predicate.
|
template<typename T>
class fcpp::WhenTrue< T >
True / if block query of Queryable<T>::branch method.
- Template Parameters
-
| T | Type of items to query over. |
◆ WhenTrue()
template<typename T>
| fcpp::WhenTrue< T >::WhenTrue |
( |
std::vector< T > | when_true_items, |
|
|
std::vector< T > | when_false_items ) |
|
inlineexplicit |
Construct a new WhereTrue object from a sequence of true and false branched items of the predicate that are to be transformed.
- Parameters
-
| when_true_items | Sequence of items from the true branch of the predicate. |
| when_false_items | Sequence of items from the false branch of the predicate. over. |
◆ when_true()
template<typename T>
template<typename WhenTrueQuery, typename WhenTrueQueriedT = typename std::invoke_result_t<WhenTrueQuery, Queryable<T>>::item_type>
Projects each item of the true branched sequence into a new form from the Queryable<T>::branch of the predicate.
- Template Parameters
-
| WhenTrueQuery | Type of transform function. |
| WhenTrueQueriedT | Type of items that will be transformed. |
- Parameters
-
| when_true_query | Transform function that projects each item into a new form. |
- Returns
- WhenFalse<WhenTrueQueriedT, T>
The documentation for this class was generated from the following file:
- /home/runner/work/fluentcpp/fluentcpp/include/fluentcpp/query.h