simox::alg Namespace Reference

Functions

template<class... Args>
std::vector< Args... > concatenate (const std::vector< Args... > &lhs, const std::vector< Args... > &rhs)
 
template<class KeyT , class ValueT >
std::map< KeyT, ValueT > map_from_key_value_pairs (const std::vector< KeyT > &lhs, const std::vector< ValueT > &rhs)
 
template<class KeyT , class ValueT >
std::vector< ValueT > multi_at (const std::map< KeyT, ValueT > &map, const std::vector< KeyT > &keys, bool skipMissing=false)
 
template<class... Args>
std::vector< Args... > slice (const std::vector< Args... > &vector, size_t start=0, std::optional< size_t > end=std::nullopt)
 

Function Documentation

◆ concatenate()

std::vector< Args... > concatenate ( const std::vector< Args... > &  lhs,
const std::vector< Args... > &  rhs 
)

Definition at line 44 of file Impl.cpp.

+ Here is the caller graph for this function:

◆ map_from_key_value_pairs()

std::map< KeyT, ValueT > map_from_key_value_pairs ( const std::vector< KeyT > &  lhs,
const std::vector< ValueT > &  rhs 
)

Definition at line 53 of file Impl.cpp.

+ Here is the call graph for this function:

◆ multi_at()

std::vector< ValueT > multi_at ( const std::map< KeyT, ValueT > &  map,
const std::vector< KeyT > &  keys,
bool  skipMissing = false 
)

Definition at line 67 of file Impl.cpp.

◆ slice()

std::vector< Args... > slice ( const std::vector< Args... > &  vector,
size_t  start = 0,
std::optional< size_t >  end = std::nullopt 
)

Definition at line 95 of file Impl.cpp.

+ Here is the caller graph for this function: