OPALX (Object Oriented Parallel Accelerator Library for Exascal) master (dc2a29eed580)
OPALX
Loading...
Searching...
No Matches
BiMap.h File Reference
#include <map>
#include <stdexcept>
Include dependency graph for BiMap.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  BiMap< Left, Right >
 Simple bidirectional map with lookup in both directions. More...
 
struct  BiMap< Left, Right >::relation
 Pair relation used for initialization. More...
 
struct  BiMap< Left, Right >::left_view
 Left-map view with find/at helpers. More...
 
struct  BiMap< Left, Right >::right_view
 Right-map view with find/at helpers. More...
 

Functions

template<typename Left , typename Right >
BiMap< Left, Right > make_bimap (std::initializer_list< typename BiMap< Left, Right >::relation > relations)
 Helper function to create a BiMap from an initializer list.
 

Function Documentation

◆ make_bimap()

template<typename Left , typename Right >
BiMap< Left, Right > make_bimap ( std::initializer_list< typename BiMap< Left, Right >::relation >  relations)

Helper function to create a BiMap from an initializer list.

Parameters
relationsInput: list of left/right relations.
Returns
Output: initialized bimap instance.

Definition at line 148 of file BiMap.h.

References BiMap< Left, Right >::insert().

Here is the call graph for this function: