Loading...
Searching...
No Matches
fcpp::WhenTrue< T > Class Template Reference
True / if block query of Queryable<T>::branch method. More...
#include <query.h>
Public Member Functions | |
| 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. | |
Detailed Description
template<typename T>
class fcpp::WhenTrue< T >
class fcpp::WhenTrue< T >
True / if block query of Queryable<T>::branch method.
- Template Parameters
-
T Type of items to query over.
Constructor & Destructor Documentation
◆ WhenTrue()
template<typename T>
|
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.
Member Function Documentation
◆ when_true()
template<typename T>
template<typename WhenTrueQuery, typename WhenTrueQueriedT = typename std::invoke_result_t<WhenTrueQuery, Queryable<T>>::item_type>
|
inline |
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.
The documentation for this class was generated from the following file:
- /home/runner/work/fluentcpp/fluentcpp/include/fluentcpp/query.h