MySQL 8.4.0
Source Code Documentation
helper::container Namespace Reference

Functions

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

Function Documentation

◆ as_set()

template<typename Container , typename Value = typename Container::value_type>
std::set< Value > helper::container::as_set ( const Container &  v)

◆ as_set_t()

template<typename Value = uint8_t, typename Container >
std::set< Value > helper::container::as_set_t ( const Container &  v)

◆ as_vector()

template<typename Container , typename Value = typename Container::value_type>
std::vector< Value > helper::container::as_vector ( const Container &  v)

◆ as_vector_t()

template<typename Value = uint8_t, typename Container >
std::vector< Value > helper::container::as_vector_t ( const Container &  v)

◆ copy_if()

template<typename Container , typename Find_if >
void helper::container::copy_if ( const Container &  input,
Find_if &&  find_if,
Container &  output 
)

◆ find()

template<typename Container , typename Value = typename Container::value_type>
Container::const_iterator helper::container::find ( const Container &  c,
Value &&  value 
)

◆ find_if()

template<typename Container , typename Find_if >
Container::const_iterator helper::container::find_if ( const Container &  c,
Find_if &&  find_if 
)

◆ get_if() [1/2]

template<typename Container , typename Find_if >
bool helper::container::get_if ( const Container &  c,
Find_if &&  find_if,
const typename Container::value_type *  out 
)

◆ get_if() [2/2]

template<typename Container , typename Find_if >
bool helper::container::get_if ( Container &  c,
Find_if &&  find_if,
typename Container::value_type *  out 
)

◆ get_ptr_if()

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 
)

◆ has()

template<typename Container , typename Value = typename Container::value_type>
bool helper::container::has ( const Container &  c,
Value &&  val 
)

◆ index_of()

template<typename Container , typename Value = typename Container::value_type>
int helper::container::index_of ( Container &  c,
Value &&  val 
)

◆ remove()

template<typename Container , typename Value = typename Container::value_type>
bool helper::container::remove ( Container &  c,
Value &&  value 
)

◆ remove_if()

template<typename Container , typename Find_if >
bool helper::container::remove_if ( Container &  c,
Find_if &&  value 
)