Class less

Synopsis

#include "breeze/cryptography/digest.hpp"

class               less

Description

A functor to compare digest objects.

Implements a strict weak ordering relation between digests (from the same Hasher type). Useful for ordered associative containers.

The function call operator is not noexcept, and the class is a friend, because I'd like this part of the library, which is the oldest, to be still compilable as C++03, if needed.

Methods

operator()

Source

Lines 94-99 in breeze/cryptography/digest.hpp.

class               less
{
public:
    bool                operator()( digest< Hasher > const & d1,
                                    digest< Hasher > const & d2 ) const ;
} ;