diff options
author | Harpreet | 2016-09-03 00:34:27 +0530 |
---|---|---|
committer | Harpreet | 2016-09-03 00:34:27 +0530 |
commit | 4b64cf486f5c999fd8167758cae27839f3b50848 (patch) | |
tree | d9d06639fb7fa61aef59be0363655e4747105ec7 /build/Bonmin/include/coin/CoinDistance.hpp | |
parent | d19794fb80a271a4c885ed90f97cfc12baa012f2 (diff) | |
download | FOSSEE-Optim-toolbox-development-4b64cf486f5c999fd8167758cae27839f3b50848.tar.gz FOSSEE-Optim-toolbox-development-4b64cf486f5c999fd8167758cae27839f3b50848.tar.bz2 FOSSEE-Optim-toolbox-development-4b64cf486f5c999fd8167758cae27839f3b50848.zip |
Structure updated and intqpipopt files added
Diffstat (limited to 'build/Bonmin/include/coin/CoinDistance.hpp')
-rw-r--r-- | build/Bonmin/include/coin/CoinDistance.hpp | 48 |
1 files changed, 0 insertions, 48 deletions
diff --git a/build/Bonmin/include/coin/CoinDistance.hpp b/build/Bonmin/include/coin/CoinDistance.hpp deleted file mode 100644 index acaa908..0000000 --- a/build/Bonmin/include/coin/CoinDistance.hpp +++ /dev/null @@ -1,48 +0,0 @@ -/* $Id: CoinDistance.hpp 1372 2011-01-03 23:31:00Z lou $ */ -// Copyright (C) 2000, International Business Machines -// Corporation and others. All Rights Reserved. -// This code is licensed under the terms of the Eclipse Public License (EPL). - -#ifndef CoinDistance_H -#define CoinDistance_H - -#include <iterator> - -//------------------------------------------------------------------- -// -// Attempt to provide an std::distance function -// that will work on multiple platforms -// -//------------------------------------------------------------------- - -/** CoinDistance - -This is the Coin implementation of the std::function that is -designed to work on multiple platforms. -*/ -template <class ForwardIterator, class Distance> -void coinDistance(ForwardIterator first, ForwardIterator last, - Distance& n) -{ -#if defined(__SUNPRO_CC) - n = 0; - std::distance(first,last,n); -#else - n = std::distance(first,last); -#endif -} - -template <class ForwardIterator> -size_t coinDistance(ForwardIterator first, ForwardIterator last) -{ - size_t retVal; -#if defined(__SUNPRO_CC) - retVal = 0; - std::distance(first,last,retVal); -#else - retVal = std::distance(first,last); -#endif - return retVal; -} - -#endif |