Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:30:12

0001 //////////////////////////////////////////////////////////////////////////////
0002 //
0003 // (C) Copyright Ion Gaztanaga 2005-2013. Distributed under the Boost
0004 // Software License, Version 1.0. (See accompanying file
0005 // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
0006 //
0007 // See http://www.boost.org/libs/container for documentation.
0008 //
0009 //////////////////////////////////////////////////////////////////////////////
0010 #ifndef BOOST_CONTAINER_DETAIL_MIN_MAX_HPP
0011 #define BOOST_CONTAINER_DETAIL_MIN_MAX_HPP
0012 
0013 #ifndef BOOST_CONFIG_HPP
0014 #  include <boost/config.hpp>
0015 #endif
0016 
0017 #if defined(BOOST_HAS_PRAGMA_ONCE)
0018 #  pragma once
0019 #endif
0020 
0021 namespace boost {
0022 namespace container {
0023 namespace dtl {
0024 
0025 template<class T>
0026 const T &max_value(const T &a, const T &b)
0027 {  return a > b ? a : b;   }
0028 
0029 template<class T>
0030 const T &min_value(const T &a, const T &b)
0031 {  return a < b ? a : b;   }
0032 
0033 }  //namespace dtl {
0034 }  //namespace container {
0035 }  //namespace boost {
0036 
0037 #endif   //#ifndef BOOST_CONTAINER_DETAIL_MIN_MAX_HPP