mc2lib
Public Types | List of all members
mc2lib::sets::Types< E, Hash > Struct Template Reference

Helper class to instantiate types used by Set, Relation, etc. More...

#include <sets.hpp>

Public Types

typedef E Element
 
typedef std::unordered_set< Element, Hash > SetContainer
 
template<class T >
using MapContainer = std::unordered_map< Element, T, Hash >
 

Detailed Description

template<class E, class Hash = typename E::Hash>
struct mc2lib::sets::Types< E, Hash >

Helper class to instantiate types used by Set, Relation, etc.

Set, Relation, etc. take a template parameter that provides Element, and SetContainer or MapContainer; this class can be used to instantiate a class to be passed as the template parameter to Set and Relation.

Member Typedef Documentation

§ Element

template<class E, class Hash = typename E::Hash>
typedef E mc2lib::sets::Types< E, Hash >::Element

§ MapContainer

template<class E, class Hash = typename E::Hash>
template<class T >
using mc2lib::sets::Types< E, Hash >::MapContainer = std::unordered_map<Element, T, Hash>

§ SetContainer

template<class E, class Hash = typename E::Hash>
typedef std::unordered_set<Element, Hash> mc2lib::sets::Types< E, Hash >::SetContainer

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