WPILibC++ 2027.0.0-alpha-4
Loading...
Searching...
No Matches
Algorithm.hpp File Reference
#include <algorithm>
#include <cstddef>
#include <utility>
#include <vector>

Go to the source code of this file.

Namespaces

namespace  wpi
namespace  wpi::util

Functions

template<typename T>
std::vector< T >::iterator wpi::util::insert_sorted (std::vector< T > &vec, T const &item)
template<typename F, typename... Ts>
constexpr void wpi::util::for_each (F &&f, Ts &&... elems)
 Calls f(i, elem) for each element of elems where i is the index of the element in elems and elem is the element.