10#include <frozen/string.h>
22bool almostEqual(
double a,
double b,
double threshold = 1e-6);
30template <
typename K,
typename V>
34 [](
auto pair) { return pair.first; });
52 return std::to_string(val);
77template <
typename T,
typename U>
114 std::function<void()> f;
_OutputIterator transform(_InputIterator __first, _InputIterator __last, _OutputIterator __result, _UnaryOperation __unary_op)
insert_iterator< _Container > inserter(_Container &__x, _Iterator __i)
_GLIBCXX_END_NAMESPACE_CXX11 typedef basic_string< char > string
iterator begin() noexcept
RAIIHelper(const std::function< void()> &f)
Construct a new RAIIHelper.
Definition core.cpp:18
~RAIIHelper()
Destroy the RAIIHelper object, executing the given function, if not empty.
Definition core.cpp:24
A collection of utility functions and classes with common use-cases.
Definition SwerveController.cpp:145
frozen::string freezeStr(const std::string &str)
Convert the given std::string to a frozen::string.
Definition core.cpp:14
bool almostEqual(double a, double b, double threshold)
Check if two numbers are approximately equal.
Definition core.cpp:5
std::string to_string< bool >(const bool &val)
Converts a boolean to a string.
Definition core.cpp:10
std::unordered_set< K > keySet(const std::unordered_map< K, V > &input)
Get the keys of the given map.
Definition core.h:31
std::tuple< T, U > pairToTuple(const std::pair< T, U > &pair)
Converts a pair to a tuple.
Definition core.h:78