Empirical
Public Types | Public Member Functions | List of all members
emp::TupleHash< TYPES > Struct Template Reference

Setup tuples to be able to be used in hash tables. More...

#include <tuple_utils.h>

Public Types

using tuple_t = std::tuple< TYPES... >
 
using fun_t = std::function< std::size_t(TYPES...)>
 

Public Member Functions

std::size_t operator() (const tuple_t &tup) const
 

Detailed Description

template<typename... TYPES>
struct emp::TupleHash< TYPES >

Setup tuples to be able to be used in hash tables.

Member Typedef Documentation

template<typename... TYPES>
using emp::TupleHash< TYPES >::fun_t = std::function<std::size_t(TYPES...)>
template<typename... TYPES>
using emp::TupleHash< TYPES >::tuple_t = std::tuple<TYPES...>

Member Function Documentation

template<typename... TYPES>
std::size_t emp::TupleHash< TYPES >::operator() ( const tuple_t tup) const
inline

The documentation for this struct was generated from the following file: