]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/boost/interprocess/detail/min_max.hpp
update sources to v12.2.3
[ceph.git] / ceph / src / boost / boost / interprocess / detail / min_max.hpp
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 #ifndef BOOST_CONFIG_HPP
17 # include <boost/config.hpp>
18 #endif
19 #
20 #if defined(BOOST_HAS_PRAGMA_ONCE)
21 # pragma once
22 #endif
23
24 #include <boost/interprocess/detail/config_begin.hpp>
25 #include <boost/interprocess/detail/workaround.hpp>
26
27 namespace boost {
28 namespace interprocess {
29
30 template<class T>
31 const T &max_value(const T &a, const T &b)
32 { return a > b ? a : b; }
33
34 template<class T>
35 const T &min_value(const T &a, const T &b)
36 { return a < b ? a : b; }
37
38 } //namespace interprocess {
39 } //namespace boost {
40
41 #include <boost/interprocess/detail/config_end.hpp>
42
43 #endif //#ifndef BOOST_INTERPROCESS_DETAIL_MIN_MAX_HPP
44