Porytiles
Loading...
Searching...
No Matches
count_map_to_list.hpp File Reference
#include <algorithm>
#include <map>
#include <utility>
#include <vector>
Include dependency graph for count_map_to_list.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  porytiles
 

Functions

template<typename T >
std::vector< std::pair< T, unsigned int > > porytiles::counts_to_descending_list (const std::map< T, unsigned int > &counts)
 Converts a map of counts to a sorted vector of key-count pairs.