---
name: "ACE_Less_Than"
section: "3"
platform: "linux"
package: "libace-doc"
version: "5.0.7-4"
release: "Debian 2.2 (Potato)"
platforms: ["linux"]
url: "https://new.carta.tech/ACE_Less_Than"
---

# ACE\_Less\_Than(3)

Function object for determining whether the first object of the given type is less than the second object of the same type.

## NAME

ACE\_Less\_Than -  Function object for determining whether the first object of the given type is less than the second object of the same type.

## SYNOPSIS

```
#include <ace/Functor_T.h>
template<class TYPE>
class ACE_Less_Than
{
  public:
    int operator () (const TYPE &lhs, const TYPE &rhs) const;
};
```

## DESCRIPTION

Templatized classes for implementing function objects that are used in various places in ACE.  There are currently two major categories of function objects in ACE: GOF Command Pattern objects, and STL-style functors for comparison of container elements.  The command objects are invoked via an execute method, while the STL-style functors are invoked via an operator() method.

## PUBLIC MEMBERS

```
int operator () (const TYPE &lhs, const TYPE &rhs) const;
```

Simply calls operator

## AUTHOR

Chris Gill cdgill@cs.wustl.edu

Based on Command Pattern implementations originally done by

Carlos O'Ryan coryan@cs.wustl.edu, Douglas C. Schmidt schmidt@cs.wustl.edu, and Sergio Flores-Gaitan sergio@cs.wustl.edu

and on STL-style functor implementations originally done by

Irfan Pyarali irfan@cs.wustl.edu

## LIBRARY

ace
