Vcsn  2.3
Be Rational
vcsn::hash< ValueSet > Class Template Reference

This is useful to make hashes with labels or weights as keys without using non-default constructors; to be used along with vcsn::equal_to. More...

#include <functional.hh>

Collaboration diagram for vcsn::hash< ValueSet >:

Public Types

using valueset_t = ValueSet
 
using value_t = typename valueset_t::value_t
 
using result_type = size_t
 
using argument_type = value_t
 

Public Member Functions

size_t operator() (const value_t &v) const
 

Detailed Description

template<typename ValueSet>
class vcsn::hash< ValueSet >

This is useful to make hashes with labels or weights as keys without using non-default constructors; to be used along with vcsn::equal_to.

Definition at line 57 of file functional.hh.

Member Typedef Documentation

template<typename ValueSet >
using vcsn::hash< ValueSet >::argument_type = value_t

Definition at line 71 of file functional.hh.

template<typename ValueSet >
using vcsn::hash< ValueSet >::result_type = size_t

Definition at line 70 of file functional.hh.

template<typename ValueSet >
using vcsn::hash< ValueSet >::value_t = typename valueset_t::value_t

Definition at line 61 of file functional.hh.

template<typename ValueSet >
using vcsn::hash< ValueSet >::valueset_t = ValueSet

Definition at line 60 of file functional.hh.

Member Function Documentation

template<typename ValueSet >
size_t vcsn::hash< ValueSet >::operator() ( const value_t v) const
inline

Definition at line 63 of file functional.hh.


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