26 lines
555 B
C++
26 lines
555 B
C++
// vim:set ft=cpp: -*- Mode: C++ -*-
|
|
/*
|
|
* (c) 2008-2009 Alexander Warg <warg@os.inf.tu-dresden.de>,
|
|
* Torsten Frenzel <frenzel@os.inf.tu-dresden.de>
|
|
* economic rights: Technische Universität Dresden (Germany)
|
|
*
|
|
* License: see LICENSE.spdx (in this directory or the directories above)
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
namespace cxx {
|
|
|
|
/**
|
|
* \brief Generic comparator class that defaults to the less-than operator.
|
|
*/
|
|
template< typename Obj >
|
|
struct Lt_functor
|
|
{
|
|
bool operator () (Obj const &l, Obj const &r) const
|
|
{ return l < r; }
|
|
};
|
|
|
|
};
|
|
|