mal-packet-weaver
C++20 packet serialization/deserialization library.
|
Provides helper functions and extensions for the C++ Standard Library. More...
#include "library-pch.hpp"
Go to the source code of this file.
Namespaces | |
namespace | mal_toolkit |
Contains a collection of tools and utilities provided by the MAL Toolkit library. | |
Functions | |
template<typename T > | |
void | mal_toolkit::SortedInsert (std::vector< T > &range, T &&value) |
Inserts a value into a sorted vector while maintaining the sorted order. | |
template<typename T > | |
void | mal_toolkit::SortedInsert (std::vector< T > &range, T &&value, std::function< bool(T const &, T const &)> const &comparator) |
Inserts a value into a sorted vector while maintaining the sorted order using a custom comparator. | |
template<typename T > | |
void | mal_toolkit::SortedErase (std::vector< T > &range, T &&value) |
Efficiently erases elements equal to a given value from a sorted vector. | |
template<typename T > | |
void | mal_toolkit::SortedErase (std::vector< T > &range, T &&value, std::function< bool(T const &, T const &)> const &comparator) |
Efficiently erases elements equal to a given value from a sorted vector using a custom comparator. | |
template<typename T > | |
void | mal_toolkit::hash_combine (size_t &seed, T const &hash) |
Combines a hash value into an existing hash using bitwise operations. | |
Provides helper functions and extensions for the C++ Standard Library.
Definition in file stl-helpers.hpp.