P4C
The P4 Compiler
Loading...
Searching...
No Matches
ByNameLess< T > Class Template Reference

#include <cmp.h>

Public Member Functions

bool operator() (const T &a, const T &b) const
 
bool operator() (const T *a, const T *b) const
 

Detailed Description

template<class T>
class ByNameLess< T >

A type suitable as map comparator that will compare objects of type T. Expects that T::getName() returns IR::ID The same comparer works for T & - reference comparison and T * - pointer comparison.