Mercurial > hg > vamp-build-and-test
annotate DEPENDENCIES/generic/include/boost/bimap/detail/generate_view_binder.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@16 | 1 // Boost.Bimap |
Chris@16 | 2 // |
Chris@16 | 3 // Copyright (c) 2006-2007 Matias Capeletto |
Chris@16 | 4 // |
Chris@16 | 5 // Distributed under the Boost Software License, Version 1.0. |
Chris@16 | 6 // (See accompanying file LICENSE_1_0.txt or copy at |
Chris@16 | 7 // http://www.boost.org/LICENSE_1_0.txt) |
Chris@16 | 8 |
Chris@16 | 9 /// \file detail/generate_view_binder.hpp |
Chris@16 | 10 /// \brief Define macros to help building the set type of definitions |
Chris@16 | 11 |
Chris@16 | 12 #ifndef BOOST_BIMAP_DETAIL_GENERATE_VIEW_BINDER_HPP |
Chris@16 | 13 #define BOOST_BIMAP_DETAIL_GENERATE_VIEW_BINDER_HPP |
Chris@16 | 14 |
Chris@101 | 15 #if defined(_MSC_VER) |
Chris@16 | 16 #pragma once |
Chris@16 | 17 #endif |
Chris@16 | 18 |
Chris@16 | 19 #include <boost/config.hpp> |
Chris@16 | 20 |
Chris@16 | 21 #include <boost/multi_index/tag.hpp> |
Chris@16 | 22 |
Chris@16 | 23 /*===========================================================================*/ |
Chris@16 | 24 #define BOOST_BIMAP_GENERATE_MAP_VIEW_BINDER( \ |
Chris@16 | 25 \ |
Chris@16 | 26 MAP_VIEW_TYPE \ |
Chris@16 | 27 \ |
Chris@16 | 28 ) \ |
Chris@16 | 29 \ |
Chris@16 | 30 template< class Tag, class BimapType > \ |
Chris@16 | 31 struct map_view_bind \ |
Chris@16 | 32 { \ |
Chris@16 | 33 typedef MAP_VIEW_TYPE \ |
Chris@16 | 34 < \ |
Chris@16 | 35 Tag, \ |
Chris@16 | 36 BimapType \ |
Chris@16 | 37 \ |
Chris@16 | 38 > type; \ |
Chris@16 | 39 }; |
Chris@16 | 40 /*===========================================================================*/ |
Chris@16 | 41 |
Chris@16 | 42 |
Chris@16 | 43 /*===========================================================================*/ |
Chris@16 | 44 #define BOOST_BIMAP_GENERATE_SET_VIEW_BINDER( \ |
Chris@16 | 45 \ |
Chris@16 | 46 SET_VIEW_TYPE \ |
Chris@16 | 47 \ |
Chris@16 | 48 ) \ |
Chris@16 | 49 \ |
Chris@16 | 50 template< class IndexType > \ |
Chris@16 | 51 struct set_view_bind \ |
Chris@16 | 52 { \ |
Chris@16 | 53 typedef SET_VIEW_TYPE<IndexType> type; \ |
Chris@16 | 54 }; |
Chris@16 | 55 /*===========================================================================*/ |
Chris@16 | 56 |
Chris@16 | 57 |
Chris@16 | 58 #endif // BOOST_BIMAP_DETAIL_GENERATE_VIEW_BINDER_HPP |