mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-21 21:05:31 +08:00
refs #501, compareByPropertyIndex (performance for sort)
This commit is contained in:
committed by
Mathew Sutcliffe
parent
1e57ce7ecb
commit
0c94922bd6
36
src/blackmisc/comparefunctions.h
Normal file
36
src/blackmisc/comparefunctions.h
Normal file
@@ -0,0 +1,36 @@
|
||||
/* Copyright (C) 2015
|
||||
* swift project Community / Contributors
|
||||
*
|
||||
* This file is part of swift project. It is subject to the license terms in the LICENSE file found in the top-level
|
||||
* directory of this distribution and at http://www.swift-project.org/license.html. No part of swift project,
|
||||
* including this file, may be copied, modified, propagated, or distributed except according to the terms
|
||||
* contained in the LICENSE file.
|
||||
*/
|
||||
|
||||
//! \file
|
||||
|
||||
#ifndef BLACKMISC_COMPAREFUNCTIONS_H
|
||||
#define BLACKMISC_COMPAREFUNCTIONS_H
|
||||
|
||||
#include "blackmisc/blackmiscexport.h"
|
||||
#include "blackmisc/variant.h"
|
||||
|
||||
namespace BlackMisc
|
||||
{
|
||||
namespace Compare
|
||||
{
|
||||
//! Compare bool
|
||||
BLACKMISC_EXPORT int compare(bool a, bool b);
|
||||
|
||||
//! Compare int
|
||||
BLACKMISC_EXPORT int compare(int a, int b);
|
||||
|
||||
//! Compare qint64
|
||||
BLACKMISC_EXPORT int compare(qint64 a, qint64 b);
|
||||
|
||||
//! Compare qint64
|
||||
BLACKMISC_EXPORT int compare(double a, double b);
|
||||
} // ns
|
||||
} // ns
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user