Namespace with loops, conditionals and other constructs that can handle both compile-time and run-time conditions.
More...
|
| template<class T > |
| constexpr auto | size (const T &t) |
| | Size query. More...
|
| |
| template<class Container , class Index > |
| constexpr decltype(auto) | elementAt (Container &&c, Index &&i) |
| | Get element at given position from container. More...
|
| |
| template<class Begin , class End > |
| constexpr auto | integralRange (const Begin &begin, const End &end) |
| | Create an integral range. More...
|
| |
| template<class End > |
| constexpr auto | integralRange (const End &end) |
| | Create an integral range starting from 0. More...
|
| |
| template<class Range , class F > |
| constexpr void | forEach (Range &&range, F &&f) |
| | Range based for loop. More...
|
| |
| template<class Range , class T , class F > |
| constexpr T | accumulate (Range &&range, T value, F &&f) |
| | Accumulate values. More...
|
| |
| template<class Condition , class IfFunc , class ElseFunc > |
| decltype(auto) | ifElse (const Condition &condition, IfFunc &&ifFunc, ElseFunc &&elseFunc) |
| | A conditional expression. More...
|
| |
| template<class Condition , class IfFunc > |
| void | ifElse (const Condition &condition, IfFunc &&ifFunc) |
| | A conditional expression. More...
|
| |
| template<class Functor > |
| constexpr HybridFunctor< Functor > | hybridFunctor (const Functor &) |
| | Returns an HybridFunctor adaptor. More...
|
| |
| template<class Cases , class Value , class Branches , class ElseBranch > |
| constexpr decltype(auto) | switchCases (const Cases &cases, const Value &value, Branches &&branches, ElseBranch &&elseBranch) |
| | Switch statement. More...
|
| |
| template<class Cases , class Value , class Branches > |
| constexpr void | switchCases (const Cases &cases, const Value &value, Branches &&branches) |
| | Switch statement. More...
|
| |
| template<class T , class Value , class Branches > |
| constexpr void | switchCases (IntegralRange< T > range, const Value &value, Branches &&branches) |
| | Switch statement. More...
|
| |
Namespace with loops, conditionals and other constructs that can handle both compile-time and run-time conditions.