annotate DEPENDENCIES/generic/include/boost/multi_index/detail/unbounded.hpp @ 133:4acb5d8d80b6 tip

Don't fail environmental check if README.md exists (but .txt and no-suffix don't)
author Chris Cannam
date Tue, 30 Jul 2019 12:25:44 +0100
parents c530137014c0
children
rev   line source
Chris@101 1 /* Copyright 2003-2013 Joaquin M Lopez Munoz.
Chris@16 2 * Distributed under the Boost Software License, Version 1.0.
Chris@16 3 * (See accompanying file LICENSE_1_0.txt or copy at
Chris@16 4 * http://www.boost.org/LICENSE_1_0.txt)
Chris@16 5 *
Chris@16 6 * See http://www.boost.org/libs/multi_index for library home page.
Chris@16 7 */
Chris@16 8
Chris@16 9 #ifndef BOOST_MULTI_INDEX_DETAIL_UNBOUNDED_HPP
Chris@16 10 #define BOOST_MULTI_INDEX_DETAIL_UNBOUNDED_HPP
Chris@16 11
Chris@101 12 #if defined(_MSC_VER)
Chris@16 13 #pragma once
Chris@16 14 #endif
Chris@16 15
Chris@16 16 #include <boost/config.hpp> /* keep it first to prevent nasty warns in MSVC */
Chris@16 17 #include <boost/detail/workaround.hpp>
Chris@16 18
Chris@16 19 namespace boost{
Chris@16 20
Chris@16 21 namespace multi_index{
Chris@16 22
Chris@16 23 /* dummy type and variable for use in ordered_index::range() */
Chris@16 24
Chris@16 25 /* ODR-abiding technique shown at the example attached to
Chris@16 26 * http://lists.boost.org/Archives/boost/2006/07/108355.php
Chris@16 27 */
Chris@16 28
Chris@16 29 namespace detail{class unbounded_helper;}
Chris@16 30
Chris@16 31 detail::unbounded_helper unbounded(detail::unbounded_helper);
Chris@16 32
Chris@16 33 namespace detail{
Chris@16 34
Chris@16 35 class unbounded_helper
Chris@16 36 {
Chris@16 37 unbounded_helper(){}
Chris@16 38 unbounded_helper(const unbounded_helper&){}
Chris@16 39 friend unbounded_helper multi_index::unbounded(unbounded_helper);
Chris@16 40 };
Chris@16 41
Chris@16 42 typedef unbounded_helper (*unbounded_type)(unbounded_helper);
Chris@16 43
Chris@16 44 } /* namespace multi_index::detail */
Chris@16 45
Chris@16 46 inline detail::unbounded_helper unbounded(detail::unbounded_helper)
Chris@16 47 {
Chris@16 48 return detail::unbounded_helper();
Chris@16 49 }
Chris@16 50
Chris@16 51 /* tags used in the implementation of range */
Chris@16 52
Chris@16 53 namespace detail{
Chris@16 54
Chris@16 55 struct none_unbounded_tag{};
Chris@16 56 struct lower_unbounded_tag{};
Chris@16 57 struct upper_unbounded_tag{};
Chris@16 58 struct both_unbounded_tag{};
Chris@16 59
Chris@16 60 } /* namespace multi_index::detail */
Chris@16 61
Chris@16 62 } /* namespace multi_index */
Chris@16 63
Chris@16 64 } /* namespace boost */
Chris@16 65
Chris@16 66 #endif