annotate DEPENDENCIES/generic/include/boost/interprocess/detail/min_max.hpp @ 125:34e428693f5d vext

Vext -> Repoint
author Chris Cannam
date Thu, 14 Jun 2018 11:15:39 +0100
parents c530137014c0
children
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@101 16 #ifndef BOOST_CONFIG_HPP
Chris@101 17 # include <boost/config.hpp>
Chris@101 18 #endif
Chris@101 19 #
Chris@101 20 #if defined(BOOST_HAS_PRAGMA_ONCE)
Chris@16 21 # pragma once
Chris@16 22 #endif
Chris@16 23
Chris@16 24 #include <boost/interprocess/detail/config_begin.hpp>
Chris@16 25 #include <boost/interprocess/detail/workaround.hpp>
Chris@16 26
Chris@16 27 namespace boost {
Chris@16 28 namespace interprocess {
Chris@16 29
Chris@16 30 template<class T>
Chris@16 31 const T &max_value(const T &a, const T &b)
Chris@16 32 { return a > b ? a : b; }
Chris@16 33
Chris@16 34 template<class T>
Chris@16 35 const T &min_value(const T &a, const T &b)
Chris@16 36 { return a < b ? a : b; }
Chris@16 37
Chris@16 38 } //namespace interprocess {
Chris@16 39 } //namespace boost {
Chris@16 40
Chris@16 41 #include <boost/interprocess/detail/config_end.hpp>
Chris@16 42
Chris@16 43 #endif //#ifndef BOOST_INTERPROCESS_DETAIL_MIN_MAX_HPP
Chris@16 44