OpenDDS  Snapshot(2023/04/07-19:43)
Public Types | Public Member Functions | List of all members
OpenDDS::DCPS::VarLess< T, V > Struct Template Reference

#include <Definitions.h>

Public Types

typedef V first_argument_type
 
typedef V second_argument_type
 
typedef bool result_type
 

Public Member Functions

bool operator() (const V &x, const V &y) const
 

Detailed Description

template<class T, class V = typename T::_var_type>
struct OpenDDS::DCPS::VarLess< T, V >

Use a Foo_var in a std::set or std::map with this comparison function, for example std::set<Foo_var, VarLess<Foo> >

Definition at line 121 of file Definitions.h.

Member Typedef Documentation

◆ first_argument_type

template<class T , class V = typename T::_var_type>
typedef V OpenDDS::DCPS::VarLess< T, V >::first_argument_type

Definition at line 122 of file Definitions.h.

◆ result_type

template<class T , class V = typename T::_var_type>
typedef bool OpenDDS::DCPS::VarLess< T, V >::result_type

Definition at line 124 of file Definitions.h.

◆ second_argument_type

template<class T , class V = typename T::_var_type>
typedef V OpenDDS::DCPS::VarLess< T, V >::second_argument_type

Definition at line 123 of file Definitions.h.

Member Function Documentation

◆ operator()()

template<class T , class V = typename T::_var_type>
bool OpenDDS::DCPS::VarLess< T, V >::operator() ( const V &  x,
const V &  y 
) const
inline

Definition at line 126 of file Definitions.h.

126  {
127  return x.in() < y.in();
128  }

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