Mercurial > hg > vamp-build-and-test
comparison DEPENDENCIES/generic/include/boost/container/detail/min_max.hpp @ 102:f46d142149f5
Whoops, finish that update
author | Chris Cannam |
---|---|
date | Mon, 07 Sep 2015 11:13:41 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
101:c530137014c0 | 102:f46d142149f5 |
---|---|
1 ////////////////////////////////////////////////////////////////////////////// | |
2 // | |
3 // (C) Copyright Ion Gaztanaga 2005-2013. Distributed under the Boost | |
4 // Software License, Version 1.0. (See accompanying file | |
5 // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) | |
6 // | |
7 // See http://www.boost.org/libs/container for documentation. | |
8 // | |
9 ////////////////////////////////////////////////////////////////////////////// | |
10 #ifndef BOOST_CONTAINER_DETAIL_MIN_MAX_HPP | |
11 #define BOOST_CONTAINER_DETAIL_MIN_MAX_HPP | |
12 | |
13 #ifndef BOOST_CONFIG_HPP | |
14 # include <boost/config.hpp> | |
15 #endif | |
16 | |
17 #if defined(BOOST_HAS_PRAGMA_ONCE) | |
18 # pragma once | |
19 #endif | |
20 | |
21 namespace boost { | |
22 namespace container { | |
23 namespace container_detail { | |
24 | |
25 template<class T> | |
26 const T &max_value(const T &a, const T &b) | |
27 { return a > b ? a : b; } | |
28 | |
29 template<class T> | |
30 const T &min_value(const T &a, const T &b) | |
31 { return a < b ? a : b; } | |
32 | |
33 } //namespace container_detail { | |
34 } //namespace container { | |
35 } //namespace boost { | |
36 | |
37 #endif //#ifndef BOOST_CONTAINER_DETAIL_MIN_MAX_HPP |