MySQL 8.4.2
Source Code Documentation
generic.h File Reference
#include <algorithm>
#include <cstdint>
#include <set>
#include <utility>
#include <vector>

Go to the source code of this file.

Namespaces

namespace  helper
 
namespace  helper::container
 

Functions

template<typename Container , typename Value = typename Container::value_type>
Container::const_iterator helper::container::find (const Container &c, Value &&value)
 
template<typename Container , typename Value = typename Container::value_type>
bool helper::container::remove (Container &c, Value &&value)
 
template<typename Container , typename Find_if >
Container::const_iterator helper::container::find_if (const Container &c, Find_if &&find_if)
 
template<typename Container , typename Find_if >
bool helper::container::remove_if (Container &c, Find_if &&value)
 
template<typename Container , typename Find_if >
bool helper::container::get_ptr_if (const Container &c, Find_if &&find_if, const typename Container::value_type **out)
 
template<typename Container , typename Find_if >
bool helper::container::get_if (const Container &c, Find_if &&find_if, const typename Container::value_type *out)
 
template<typename Container , typename Find_if >
bool helper::container::get_if (Container &c, Find_if &&find_if, typename Container::value_type *out)
 
template<typename Container , typename Value = typename Container::value_type>
bool helper::container::has (const Container &c, Value &&val)
 
template<typename Container , typename Value = typename Container::value_type>
int helper::container::index_of (Container &c, Value &&val)
 
template<typename Container , typename Find_if >
void helper::container::copy_if (const Container &input, Find_if &&find_if, Container &output)
 
template<typename Container , typename Value = typename Container::value_type>
std::vector< Value > helper::container::as_vector (const Container &v)
 
template<typename Value = uint8_t, typename Container >
std::vector< Value > helper::container::as_vector_t (const Container &v)
 
template<typename Container , typename Value = typename Container::value_type>
std::set< Value > helper::container::as_set (const Container &v)
 
template<typename Value = uint8_t, typename Container >
std::set< Value > helper::container::as_set_t (const Container &v)