comparison 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
comparison
equal deleted inserted replaced
15:663ca0da4350 16:2665513ce2d3
1 //////////////////////////////////////////////////////////////////////////////
2 //
3 // (C) Copyright Ion Gaztanaga 2005-2012.
4 //
5 // Distributed under the Boost Software License, Version 1.0.
6 // (See accompanying file LICENSE_1_0.txt or copy at
7 // http://www.boost.org/LICENSE_1_0.txt)
8 //
9 // See http://www.boost.org/libs/interprocess for documentation.
10 //
11 //////////////////////////////////////////////////////////////////////////////
12
13 #ifndef BOOST_INTERPROCESS_DETAIL_MIN_MAX_HPP
14 #define BOOST_INTERPROCESS_DETAIL_MIN_MAX_HPP
15
16 #if (defined _MSC_VER) && (_MSC_VER >= 1200)
17 # pragma once
18 #endif
19
20 #include <boost/interprocess/detail/config_begin.hpp>
21 #include <boost/interprocess/detail/workaround.hpp>
22
23 namespace boost {
24 namespace interprocess {
25
26 template<class T>
27 const T &max_value(const T &a, const T &b)
28 { return a > b ? a : b; }
29
30 template<class T>
31 const T &min_value(const T &a, const T &b)
32 { return a < b ? a : b; }
33
34 } //namespace interprocess {
35 } //namespace boost {
36
37 #include <boost/interprocess/detail/config_end.hpp>
38
39 #endif //#ifndef BOOST_INTERPROCESS_DETAIL_MIN_MAX_HPP
40