Ring Daemon 16.0.0
Loading...
Searching...
No Matches
map_utils.h File Reference
Include dependency graph for map_utils.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  jami
 
namespace  jami::map_utils
 

Typedefs

template<typename C , std::size_t N>
using jami::map_utils::type_element = typename std::remove_cv< typename std::tuple_element< N, typename C::value_type >::type >::type
 Extract in a std::vector object each N-th values of tuples contained in a Container compliant object container.
 

Functions

template<std::size_t N, typename C >
std::vector< type_element< C, N > > jami::map_utils::extractElements (const C &container)
 
template<typename M >
auto jami::map_utils::extractKeys (const M &map) -> decltype(extractElements< 0 >(map))
 
template<typename M >
auto jami::map_utils::extractValues (const M &map) -> decltype(extractElements< 1 >(map))