OmniSciDB  a987f07e93
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
TypeHandler.h File Reference

Sortable utility struct for visitor patterns. More...

#include <typeindex>
+ Include dependency graph for TypeHandler.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  TypeHandler< T, U >
 

Functions

template<typename T , typename U >
bool operator< (TypeHandler< T, U > const &lhs, TypeHandler< T, U > const &rhs)
 
template<typename T , typename U >
bool operator< (TypeHandler< T, U > const &lhs, std::type_index const &rhs)
 
template<typename T , typename U >
bool operator< (std::type_index const &lhs, TypeHandler< T, U > const &rhs)
 

Detailed Description

Sortable utility struct for visitor patterns.

Definition in file TypeHandler.h.

Function Documentation

template<typename T , typename U >
bool operator< ( TypeHandler< T, U > const &  lhs,
TypeHandler< T, U > const &  rhs 
)

Definition at line 33 of file TypeHandler.h.

References TypeHandler< T, U >::type_index.

33  {
34  return lhs.type_index < rhs.type_index;
35 }
std::type_index type_index
Definition: TypeHandler.h:28
template<typename T , typename U >
bool operator< ( TypeHandler< T, U > const &  lhs,
std::type_index const &  rhs 
)

Definition at line 38 of file TypeHandler.h.

38  {
39  return lhs.type_index < rhs;
40 }
std::type_index type_index
Definition: TypeHandler.h:28
template<typename T , typename U >
bool operator< ( std::type_index const &  lhs,
TypeHandler< T, U > const &  rhs 
)

Definition at line 43 of file TypeHandler.h.

43  {
44  return lhs < rhs.type_index;
45 }
std::type_index type_index
Definition: TypeHandler.h:28