annotate DEPENDENCIES/generic/include/boost/bimap/relation/detail/metadata_access_builder.hpp @ 125:34e428693f5d vext

Vext -> Repoint
author Chris Cannam
date Thu, 14 Jun 2018 11:15:39 +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 relation/detail/metadata_access_builder.hpp
Chris@16 10 /// \brief Define macros to help building metafunctions
Chris@16 11
Chris@16 12 #ifndef BOOST_BIMAP_RELATION_DETAIL_METADATA_ACCESS_BUILDER_HPP
Chris@16 13 #define BOOST_BIMAP_RELATION_DETAIL_METADATA_ACCESS_BUILDER_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/bimap/relation/support/is_tag_of_member_at.hpp>
Chris@16 22 #include <boost/bimap/detail/debug/static_error.hpp>
Chris@16 23 #include <boost/utility/enable_if.hpp>
Chris@16 24 #include <boost/preprocessor/cat.hpp>
Chris@16 25
Chris@16 26
Chris@16 27
Chris@16 28 /******************************************************************************
Chris@16 29 BIMAP SYMMETRIC METADATA ACCESS INTERFACE
Chris@16 30 *******************************************************************************
Chris@16 31
Chris@16 32 template< class Tag, class SymmetricType >
Chris@16 33 struct NAME
Chris@16 34 {
Chris@16 35 typedef -unspecified- type;
Chris@16 36 };
Chris@16 37
Chris@16 38 ******************************************************************************/
Chris@16 39
Chris@16 40
Chris@16 41 /*===========================================================================*/
Chris@16 42 #define BOOST_BIMAP_SYMMETRIC_METADATA_ACCESS_BUILDER( \
Chris@16 43 \
Chris@16 44 NAME, \
Chris@16 45 METADATA_BY_LEFT, \
Chris@16 46 METADATA_BY_RIGHT \
Chris@16 47 ) \
Chris@16 48 \
Chris@16 49 template \
Chris@16 50 < \
Chris@16 51 class Tag, \
Chris@16 52 class SymmetricType, \
Chris@16 53 class Enable = void \
Chris@16 54 > \
Chris@16 55 struct NAME \
Chris@16 56 { \
Chris@16 57 BOOST_BIMAP_STATIC_ERROR( \
Chris@16 58 BOOST_PP_CAT(NAME,_FAILURE), \
Chris@16 59 (SymmetricType,Tag) \
Chris@16 60 ); \
Chris@16 61 }; \
Chris@16 62 \
Chris@16 63 template< class Tag, class SymmetricType > \
Chris@16 64 struct NAME \
Chris@16 65 < \
Chris@16 66 Tag, SymmetricType, \
Chris@16 67 BOOST_DEDUCED_TYPENAME enable_if \
Chris@16 68 < \
Chris@16 69 ::boost::bimaps::relation::support::is_tag_of_member_at_left \
Chris@16 70 < \
Chris@16 71 Tag, \
Chris@16 72 SymmetricType \
Chris@16 73 > \
Chris@16 74 \
Chris@16 75 >::type \
Chris@16 76 > \
Chris@16 77 { \
Chris@16 78 typedef BOOST_DEDUCED_TYPENAME SymmetricType::METADATA_BY_LEFT type; \
Chris@16 79 }; \
Chris@16 80 \
Chris@16 81 template< class Tag, class SymmetricType > \
Chris@16 82 struct NAME \
Chris@16 83 < \
Chris@16 84 Tag, SymmetricType, \
Chris@16 85 BOOST_DEDUCED_TYPENAME enable_if \
Chris@16 86 < \
Chris@16 87 ::boost::bimaps::relation::support::is_tag_of_member_at_right \
Chris@16 88 < \
Chris@16 89 Tag, \
Chris@16 90 SymmetricType \
Chris@16 91 > \
Chris@16 92 \
Chris@16 93 >::type \
Chris@16 94 > \
Chris@16 95 { \
Chris@16 96 typedef BOOST_DEDUCED_TYPENAME SymmetricType::METADATA_BY_RIGHT type; \
Chris@16 97 };
Chris@16 98 /*===========================================================================*/
Chris@16 99
Chris@16 100
Chris@16 101 #endif // BOOST_BIMAP_RELATION_DETAIL_METADATA_ACCES_BUILDER_HPP
Chris@16 102
Chris@16 103