]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/libs/units/include/boost/units/detail/ordinal.hpp
bump version to 12.2.2-pve1
[ceph.git] / ceph / src / boost / libs / units / include / boost / units / detail / ordinal.hpp
CommitLineData
7c673cae
FG
1// Boost.Units - A C++ library for zero-overhead dimensional analysis and
2// unit/quantity manipulation and conversion
3//
4// Copyright (C) 2003-2008 Matthias Christian Schabel
5// Copyright (C) 2007-2008 Steven Watanabe
6//
7// Distributed under the Boost Software License, Version 1.0. (See
8// accompanying file LICENSE_1_0.txt or copy at
9// http://www.boost.org/LICENSE_1_0.txt)
10
11#ifndef BOOST_UNITS_DETAIL_ORDINAL_HPP_INCLUDED
12#define BOOST_UNITS_DETAIL_ORDINAL_HPP_INCLUDED
13
14#include <boost/mpl/less.hpp>
15#include <boost/mpl/bool.hpp>
16
17namespace boost {
18namespace units {
19
20namespace detail {
21
22struct ordinal_tag {};
23
24}
25
26template<int N>
27struct ordinal {
28 typedef detail::ordinal_tag tag;
29 static const long value = N;
30};
31
32template<int N>
33const long ordinal<N>::value;
34
35}
36
37namespace mpl {
38
39template<>
40struct less_impl<units::detail::ordinal_tag, units::detail::ordinal_tag> {
41 template<class T1, class T2>
42 struct apply : bool_<(T1::value) < (T2::value)> {};
43};
44
45}
46
47}
48
49#endif