mal-packet-weaver
C++20 packet serialization/deserialization library.
Loading...
Searching...
No Matches
stl-helpers.hpp File Reference

Provides helper functions and extensions for the C++ Standard Library. More...

#include "library-pch.hpp"
Include dependency graph for stl-helpers.hpp:
This graph shows which files directly or indirectly include this file:

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.
 

Detailed Description

Provides helper functions and extensions for the C++ Standard Library.

Definition in file stl-helpers.hpp.