opposite_tag.hpp 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. // Boost.Bimap
  2. //
  3. // Copyright (c) 2006-2007 Matias Capeletto
  4. //
  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)
  8. /// \file relation/support/opposite_tag.hpp
  9. /// \brief Metafunction to obtain the opposite tag in a relation.
  10. #ifndef BOOST_BIMAP_RELATION_SUPPORT_OPPOSITE_TAG_HPP
  11. #define BOOST_BIMAP_RELATION_SUPPORT_OPPOSITE_TAG_HPP
  12. #if defined(_MSC_VER)
  13. #pragma once
  14. #endif
  15. #include <boost/config.hpp>
  16. #include <boost/bimap/relation/detail/metadata_access_builder.hpp>
  17. /** \struct boost::bimaps::relation::support::opposite_tag
  18. \brief Metafunction to obtain the opposite tag in a relation.
  19. \code
  20. template< class Tag, class Relation >
  21. struct opposite_tag
  22. {
  23. typedef {OppositeTag} type;
  24. };
  25. \endcode
  26. \ingroup relation_group
  27. **/
  28. namespace boost {
  29. namespace bimaps {
  30. namespace relation {
  31. namespace support {
  32. // Implementation of const pair reference type by metafunction
  33. BOOST_BIMAP_SYMMETRIC_METADATA_ACCESS_BUILDER
  34. (
  35. opossite_tag,
  36. right_tag,
  37. left_tag
  38. )
  39. } // namespace support
  40. } // namespace relation
  41. } // namespace bimaps
  42. } // namespace boost
  43. #endif // BOOST_BIMAP_RELATION_SUPPORT_OPPOSITE_TAG_HPP