shared
 All Classes Functions Variables Typedefs Enumerations Enumerator Friends
Public Member Functions | Public Attributes | Friends | List of all members
permutation_entry< V, P > Struct Template Reference

A storage structure for entries with a sorting key and a payload. More...

#include <Common.hpp>

Public Member Functions

 permutation_entry (V value, P payload)
 Default constructor. More...
 

Public Attributes

value
 The sorting key.
 
payload
 The payload.
 

Friends

bool operator< (const permutation_entry &a, const permutation_entry &b)
 Performs a comparison on the basis of sorting keys. More...
 

Detailed Description

template<class V, class P>
struct permutation_entry< V, P >

A storage structure for entries with a sorting key and a payload.

Constructor & Destructor Documentation

template<class V , class P >
permutation_entry< V, P >::permutation_entry ( value,
payload 
)
inline

Default constructor.

Parameters
valuethe sorting key.
payloadthe payload.

Friends And Related Function Documentation

template<class V , class P >
bool operator< ( const permutation_entry< V, P > &  a,
const permutation_entry< V, P > &  b 
)
friend

Performs a comparison on the basis of sorting keys.

Parameters
athe left hand side.
bthe right hand side.
Returns
true if and only if the LHS is less than the RHS.