Derecho  0.9
Distributed systems toolkit for RDMA
Namespaces | Functions
container_template_functions.hpp File Reference
#include <algorithm>
#include <list>
#include <map>
#include <set>
#include <vector>
Include dependency graph for container_template_functions.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 derecho
 

Functions

template<typename T >
std::set< T > derecho::functional_insert (std::set< T > &a, const std::set< T > &b)
 Inserts set b into set a and returns the modified a. More...
 
template<typename T >
std::vector< T > derecho::functional_append (const std::vector< T > &original, const T &item)
 Base case for functional_append, with one argument. More...
 
template<typename T , typename... RestArgs>
std::vector< T > derecho::functional_append (const std::vector< T > &original, const T &first_item, RestArgs... rest_items)
 Returns a new std::vector value that is equal to the parameter std::vector with the rest of the arguments appended. More...
 
template<typename K1 , typename K2 , typename V >
std::size_t derecho::multimap_size (const std::map< K1, std::map< K2, V >> &multimap)
 Returns the size of a std::map of std::maps, by counting up the sizes of all the inner maps. More...
 
template<typename K , typename V >
std::list< K > derecho::keys_as_list (const std::map< K, V > &map)
 Constructs a std::list of the keys in a std::map, in the same order as they appear in the std::map. More...
 
template<typename Container >
std::size_t derecho::index_of (const Container &container, const typename Container::value_type &elem)
 Finds a value in a STL container, and returns the index of that value in the container. More...