tenno 0.1.0
Loading...
Searching...
No Matches
algorithm.hpp File Reference
#include <tenno/utility.hpp>

Go to the source code of this file.

Namespaces

namespace  tenno
 

Functions

template<typename InputIt , typename OutputIt >
constexpr OutputIt tenno::copy (InputIt first, InputIt last, OutputIt d_first)
 Copies the elements in the range [first, last) to the range beginning at d_first.
 
template<class InputIt , class UnaryFunc >
constexpr UnaryFunc tenno::for_each (InputIt first, InputIt last, UnaryFunc f)
 Applies the given function f to the result of dereferencing every element in the range [first, last).
 
template<class InputIt , class T >
constexpr T tenno::accumulate (InputIt first, InputIt last, T init) noexcept
 Applies the given function f to the result of dereferencing every element in the range [first, last) and returns the result.
 
template<class T >
void tenno::swap (T &a, T &b) noexcept
 Exchanges the values of a and b.