|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r67595 - trunk/boost/ratio/mpl
From: vicente.botet_at_[hidden]
Date: 2011-01-02 15:49:00
Author: viboes
Date: 2011-01-02 15:48:59 EST (Sun, 02 Jan 2011)
New Revision: 67595
URL: http://svn.boost.org/trac/boost/changeset/67595
Log:
Boost.Ratio: Added mpl comparison operations
Added:
trunk/boost/ratio/mpl/equal_to.hpp (contents, props changed)
trunk/boost/ratio/mpl/greater.hpp (contents, props changed)
trunk/boost/ratio/mpl/greater_equal.hpp (contents, props changed)
trunk/boost/ratio/mpl/less.hpp (contents, props changed)
trunk/boost/ratio/mpl/less_equal.hpp (contents, props changed)
trunk/boost/ratio/mpl/not_equal_to.hpp (contents, props changed)
Added: trunk/boost/ratio/mpl/equal_to.hpp
==============================================================================
--- (empty file)
+++ trunk/boost/ratio/mpl/equal_to.hpp 2011-01-02 15:48:59 EST (Sun, 02 Jan 2011)
@@ -0,0 +1,30 @@
+// equal_to.hpp
+//
+// (C) Copyright 2011 Vicente J. Botet Escriba
+// Use, modification and distribution are subject to the Boost Software License,
+// Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
+// http://www.boost.org/LICENSE_1_0.txt).
+//
+
+#ifndef BOOST_RATIO_MPL_EQUAL_TO_HPP
+#define BOOST_RATIO_MPL_EQUAL_TO_HPP
+
+#include <boost/ratio.hpp>
+#include <boost/ratio/mpl/numeric_cast.hpp>
+#include <boost/mpl/equal_to.hpp>
+
+namespace boost {
+namespace mpl {
+
+template<>
+struct equal_to_impl< rational_c_tag,rational_c_tag >
+{
+ template< typename R1, typename R2 > struct apply
+ : ratio_equal<R1, R2>
+ {
+ };
+};
+}
+}
+
+#endif // BOOST_RATIO_MPL_EQUAL_TO_HPP
Added: trunk/boost/ratio/mpl/greater.hpp
==============================================================================
--- (empty file)
+++ trunk/boost/ratio/mpl/greater.hpp 2011-01-02 15:48:59 EST (Sun, 02 Jan 2011)
@@ -0,0 +1,30 @@
+// greater.hpp
+//
+// (C) Copyright 2011 Vicente J. Botet Escriba
+// Use, modification and distribution are subject to the Boost Software License,
+// Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
+// http://www.boost.org/LICENSE_1_0.txt).
+//
+
+#ifndef BOOST_RATIO_MPL_GREATER_HPP
+#define BOOST_RATIO_MPL_GREATER_HPP
+
+#include <boost/ratio.hpp>
+#include <boost/ratio/mpl/numeric_cast.hpp>
+#include <boost/mpl/greater.hpp>
+
+namespace boost {
+namespace mpl {
+
+template<>
+struct greater_impl< rational_c_tag,rational_c_tag >
+{
+ template< typename R1, typename R2 > struct apply
+ : ratio_greater<R1, R2>
+ {
+ };
+};
+}
+}
+
+#endif // BOOST_RATIO_MPL_GREATER_HPP
Added: trunk/boost/ratio/mpl/greater_equal.hpp
==============================================================================
--- (empty file)
+++ trunk/boost/ratio/mpl/greater_equal.hpp 2011-01-02 15:48:59 EST (Sun, 02 Jan 2011)
@@ -0,0 +1,30 @@
+// greater_equal.hpp
+//
+// (C) Copyright 2011 Vicente J. Botet Escriba
+// Use, modification and distribution are subject to the Boost Software License,
+// Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
+// http://www.boost.org/LICENSE_1_0.txt).
+//
+
+#ifndef BOOST_RATIO_MPL_GREATER_EQUAL_HPP
+#define BOOST_RATIO_MPL_GREATER_EQUAL_HPP
+
+#include <boost/ratio.hpp>
+#include <boost/ratio/mpl/numeric_cast.hpp>
+#include <boost/mpl/greater_equal.hpp>
+
+namespace boost {
+namespace mpl {
+
+template<>
+struct greater_equal_impl< rational_c_tag,rational_c_tag >
+{
+ template< typename R1, typename R2 > struct apply
+ : ratio_greater_equal<R1, R2>
+ {
+ };
+};
+}
+}
+
+#endif // BOOST_RATIO_MPL_GREATER_EQUAL_HPP
Added: trunk/boost/ratio/mpl/less.hpp
==============================================================================
--- (empty file)
+++ trunk/boost/ratio/mpl/less.hpp 2011-01-02 15:48:59 EST (Sun, 02 Jan 2011)
@@ -0,0 +1,30 @@
+// less.hpp
+//
+// (C) Copyright 2011 Vicente J. Botet Escriba
+// Use, modification and distribution are subject to the Boost Software License,
+// Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
+// http://www.boost.org/LICENSE_1_0.txt).
+//
+
+#ifndef BOOST_RATIO_MPL_LESS_HPP
+#define BOOST_RATIO_MPL_LESS_HPP
+
+#include <boost/ratio.hpp>
+#include <boost/ratio/mpl/numeric_cast.hpp>
+#include <boost/mpl/less.hpp>
+
+namespace boost {
+namespace mpl {
+
+template<>
+struct less_impl< rational_c_tag,rational_c_tag >
+{
+ template< typename R1, typename R2 > struct apply
+ : ratio_less<R1, R2>
+ {
+ };
+};
+}
+}
+
+#endif // BOOST_RATIO_MPL_LESS_HPP
Added: trunk/boost/ratio/mpl/less_equal.hpp
==============================================================================
--- (empty file)
+++ trunk/boost/ratio/mpl/less_equal.hpp 2011-01-02 15:48:59 EST (Sun, 02 Jan 2011)
@@ -0,0 +1,30 @@
+// less_equal.hpp
+//
+// (C) Copyright 2011 Vicente J. Botet Escriba
+// Use, modification and distribution are subject to the Boost Software License,
+// Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
+// http://www.boost.org/LICENSE_1_0.txt).
+//
+
+#ifndef BOOST_RATIO_MPL_LESS_EQUAL_HPP
+#define BOOST_RATIO_MPL_LESS_EQUAL_HPP
+
+#include <boost/ratio.hpp>
+#include <boost/ratio/mpl/numeric_cast.hpp>
+#include <boost/mpl/less_equal.hpp>
+
+namespace boost {
+namespace mpl {
+
+template<>
+struct less_equal_impl< rational_c_tag,rational_c_tag >
+{
+ template< typename R1, typename R2 > struct apply
+ : ratio_less_equal<R1, R2>
+ {
+ };
+};
+}
+}
+
+#endif // BOOST_RATIO_MPL_LESS_EQUAL_HPP
Added: trunk/boost/ratio/mpl/not_equal_to.hpp
==============================================================================
--- (empty file)
+++ trunk/boost/ratio/mpl/not_equal_to.hpp 2011-01-02 15:48:59 EST (Sun, 02 Jan 2011)
@@ -0,0 +1,30 @@
+// not_equal_to.hpp
+//
+// (C) Copyright 2011 Vicente J. Botet Escriba
+// Use, modification and distribution are subject to the Boost Software License,
+// Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
+// http://www.boost.org/LICENSE_1_0.txt).
+//
+
+#ifndef BOOST_RATIO_MPL_NOT_EQUAL_TO_HPP
+#define BOOST_RATIO_MPL_NOT_EQUAL_TO_HPP
+
+#include <boost/ratio.hpp>
+#include <boost/ratio/mpl/numeric_cast.hpp>
+#include <boost/mpl/not_equal_to.hpp>
+
+namespace boost {
+namespace mpl {
+
+template<>
+struct not_equal_to_impl< rational_c_tag,rational_c_tag >
+{
+ template< typename R1, typename R2 > struct apply
+ : ratio_not_equal<R1, R2>
+ {
+ };
+};
+}
+}
+
+#endif // BOOST_RATIO_MPL_NOT_EQUAL_TO_HPP
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk