Mercurial > hg > vamp-build-and-test
annotate DEPENDENCIES/generic/include/boost/interprocess/detail/min_max.hpp @ 16:2665513ce2d3
Add boost headers
author | Chris Cannam |
---|---|
date | Tue, 05 Aug 2014 11:11:38 +0100 |
parents | |
children | c530137014c0 |
rev | line source |
---|---|
Chris@16 | 1 ////////////////////////////////////////////////////////////////////////////// |
Chris@16 | 2 // |
Chris@16 | 3 // (C) Copyright Ion Gaztanaga 2005-2012. |
Chris@16 | 4 // |
Chris@16 | 5 // Distributed under the Boost Software License, Version 1.0. |
Chris@16 | 6 // (See accompanying file LICENSE_1_0.txt or copy at |
Chris@16 | 7 // http://www.boost.org/LICENSE_1_0.txt) |
Chris@16 | 8 // |
Chris@16 | 9 // See http://www.boost.org/libs/interprocess for documentation. |
Chris@16 | 10 // |
Chris@16 | 11 ////////////////////////////////////////////////////////////////////////////// |
Chris@16 | 12 |
Chris@16 | 13 #ifndef BOOST_INTERPROCESS_DETAIL_MIN_MAX_HPP |
Chris@16 | 14 #define BOOST_INTERPROCESS_DETAIL_MIN_MAX_HPP |
Chris@16 | 15 |
Chris@16 | 16 #if (defined _MSC_VER) && (_MSC_VER >= 1200) |
Chris@16 | 17 # pragma once |
Chris@16 | 18 #endif |
Chris@16 | 19 |
Chris@16 | 20 #include <boost/interprocess/detail/config_begin.hpp> |
Chris@16 | 21 #include <boost/interprocess/detail/workaround.hpp> |
Chris@16 | 22 |
Chris@16 | 23 namespace boost { |
Chris@16 | 24 namespace interprocess { |
Chris@16 | 25 |
Chris@16 | 26 template<class T> |
Chris@16 | 27 const T &max_value(const T &a, const T &b) |
Chris@16 | 28 { return a > b ? a : b; } |
Chris@16 | 29 |
Chris@16 | 30 template<class T> |
Chris@16 | 31 const T &min_value(const T &a, const T &b) |
Chris@16 | 32 { return a < b ? a : b; } |
Chris@16 | 33 |
Chris@16 | 34 } //namespace interprocess { |
Chris@16 | 35 } //namespace boost { |
Chris@16 | 36 |
Chris@16 | 37 #include <boost/interprocess/detail/config_end.hpp> |
Chris@16 | 38 |
Chris@16 | 39 #endif //#ifndef BOOST_INTERPROCESS_DETAIL_MIN_MAX_HPP |
Chris@16 | 40 |