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/member_at.hpp
10 /// \brief Defines the tags for the member_at::side idiom
12 #ifndef BOOST_BIMAP_RELATION_MEMBER_AT_HPP
13 #define BOOST_BIMAP_RELATION_MEMBER_AT_HPP
15 #if defined(_MSC_VER) && (_MSC_VER>=1200)
19 #include <boost/config.hpp>
25 /// \brief member_at::side idiom to access relation values and types using metaprogramming.
28 This tags are used to specify which member you want to acces when using a metafunction over
29 a symmetrical type. The idea is to be able to write code like:
32 result_of::get<member_at::left,relation>::type data = get<member_at::left>(rel);
35 The relation class supports this idiom even when the elements are tagged. This is useful
36 because a user can decide to start tagging in any moment of the development.
38 See also member_with_tag, is_tag_of_member_at_left, is_tag_of_member_at_right, get
39 value_type_of, pair_by, pair_type_by.
41 \ingroup relation_group
45 /// \brief Member at left tag
47 See also member_at, rigth.
52 /// \brief Member at right tag
54 See also member_at, left.
59 /// \brief Member info tag
61 See also member_at, left, right.
68 } // namespace relation
72 #endif // BOOST_BIMAP_RELATION_MEMBER_AT_HPP