Autonomy Software C++ 24.5.1
Welcome to the Autonomy Software repository of the Mars Rover Design Team (MRDT) at Missouri University of Science and Technology (Missouri S&T)! API reference contains the source code and other resources for the development of the autonomy software for our Mars rover. The Autonomy Software project aims to compete in the University Rover Challenge (URC) by demonstrating advanced autonomous capabilities and robust navigation algorithms.
Loading...
Searching...
No Matches
CPPHTTPLIB_NAMESPACE::detail::case_ignore::hash Struct Reference

Public Member Functions

size_t operator() (const std::string &key) const
size_t hash_core (const char *s, size_t l, size_t h) const

Member Function Documentation

◆ operator()()

size_t CPPHTTPLIB_NAMESPACE::detail::case_ignore::hash::operator() ( const std::string & key) const
inline
281951 {
281952 return hash_core(key.data(), key.size(), 0);
281953 }

◆ hash_core()

size_t CPPHTTPLIB_NAMESPACE::detail::case_ignore::hash::hash_core ( const char * s,
size_t l,
size_t h ) const
inline
281955 {
281956 return (l == 0) ? h
281957 : hash_core(s + 1, l - 1,
281958 // Unsets the 6 high bits of h, therefore no
281959 // overflow happens
281960 (((std::numeric_limits<size_t>::max)() >> 6) &
281961 h * 33) ^
281962 static_cast<unsigned char>(to_lower(*s)));
281963 }

The documentation for this struct was generated from the following file: