Logo
Fully annotated reference manual - version 1.8.12
Loading...
Searching...
No Matches
Public Member Functions | List of all members
CurrencyComparator Struct Reference

#include <qle/currencies/currencycomparator.hpp>

+ Collaboration diagram for CurrencyComparator:

Public Member Functions

bool operator() (const QuantLib::Currency &c1, const QuantLib::Currency &c2) const
 

Detailed Description

Definition at line 30 of file currencycomparator.hpp.

Member Function Documentation

◆ operator()()

bool operator() ( const QuantLib::Currency &  c1,
const QuantLib::Currency &  c2 
) const

Definition at line 31 of file currencycomparator.hpp.

31 {
32 std::string code1 = c1.empty() ? "" : c1.code();
33 std::string code2 = c2.empty() ? "" : c2.code();
34 return code1 < code2;
35 }