3 // Copyright (c) 2006-2007 Matias Capeletto
5 // Distributed under the Boost Software License, Version 1.0.
6 // (See accompanying file LICENSE_1_0.txt or copy at
7 // http://www.boost.org/LICENSE_1_0.txt)
9 /// \file relation/support/opposite_tag.hpp
10 /// \brief Metafunction to obtain the opposite tag in a relation.
12 #ifndef BOOST_BIMAP_RELATION_SUPPORT_OPPOSITE_TAG_HPP
13 #define BOOST_BIMAP_RELATION_SUPPORT_OPPOSITE_TAG_HPP
15 #if defined(_MSC_VER) && (_MSC_VER>=1200)
19 #include <boost/config.hpp>
21 #include <boost/bimap/relation/detail/metadata_access_builder.hpp>
23 /** \struct boost::bimaps::relation::support::opposite_tag
25 \brief Metafunction to obtain the opposite tag in a relation.
29 template< class Tag, class Relation >
32 typedef {OppositeTag} type;
37 \ingroup relation_group
45 // Implementation of const pair reference type by metafunction
47 BOOST_BIMAP_SYMMETRIC_METADATA_ACCESS_BUILDER
54 } // namespace support
55 } // namespace relation
60 #endif // BOOST_BIMAP_RELATION_SUPPORT_OPPOSITE_TAG_HPP