cMHN 1.1
C++ library for learning MHNs with pRC
Loading...
Searching...
No Matches
Namespaces | Functions
fold.hpp File Reference
#include <prc/core/basic/direction.hpp>
#include <prc/core/basic/type_traits.hpp>

Go to the source code of this file.

Namespaces

namespace  pRC
 

Functions

template<class F , Bool E = false, Direction D = Direction::Forwards, If< IsSatisfied<(D==Direction::Forwards||D==Direction::Backwards)> > = 0, class XA , If< IsInvocable< F, XA, XA > > = 0>
static constexpr Conditional< IsSatisfied< E >, decltype(eval(declval< XA >())), XApRC::fold (XA &&a)
 
template<class F , Bool E = false, Direction D = Direction::Forwards, If< IsSatisfied<(D==Direction::Forwards||D==Direction::Backwards)> > = 0, class XA , class XB , If< IsInvocable< F, XA, XB > > = 0>
static constexpr auto pRC::fold (XA &&a, XB &&b)
 
template<class F , Bool E = false, Direction D = Direction::Forwards, class XA , class XB , class... Xs, If< IsSatisfied<(sizeof...(Xs) > 0)> , If< IsSatisfied<(D==Direction::Forwards||D==Direction::Backwards)> > = 0, If< IsInvocable< F, XA, XB > > = 0, If< IsInvocable< Fold< F, E, D >, ResultOf< Fold< F, E, D >, XA, XB > const &, Xs... > > = 0>
static constexpr auto pRC::fold (XA &&a, XB &&b, Xs &&...args)