|
||||
File indexing completed on 2025-01-18 09:29:39
0001 // Boost.Bimap 0002 // 0003 // Copyright (c) 2006-2007 Matias Capeletto 0004 // 0005 // Distributed under the Boost Software License, Version 1.0. 0006 // (See accompanying file LICENSE_1_0.txt or copy at 0007 // http://www.boost.org/LICENSE_1_0.txt) 0008 0009 /// \file relation/pair_layout.hpp 0010 /// \brief Tags for pair layouts 0011 0012 #ifndef BOOST_BIMAP_RELATION_PAIR_LAYOUT_HPP 0013 #define BOOST_BIMAP_RELATION_PAIR_LAYOUT_HPP 0014 0015 #if defined(_MSC_VER) 0016 #pragma once 0017 #endif 0018 0019 #include <boost/config.hpp> 0020 0021 namespace boost { 0022 namespace bimaps { 0023 namespace relation { 0024 0025 //@{ 0026 0027 /// \brief Tag for normal layout. ( A,B -> A,B ) 0028 0029 struct normal_layout {}; 0030 0031 /// \brief Tag for mirror layout. ( A,B -> B,A ) 0032 0033 struct mirror_layout {}; 0034 0035 //@} 0036 0037 /** \struct boost::bimaps::relation::inverse_layout 0038 \brief Metafunction to obtain the inverse of a layout. 0039 0040 \code 0041 template< class Layout > 0042 struct inverse_layout 0043 { 0044 typedef {InverseLayout} type; 0045 }; 0046 \endcode 0047 0048 See also normal_layout, mirror_layout. 0049 **/ 0050 0051 #ifndef BOOST_BIMAP_DOXYGEN_WILL_NOT_PROCESS_THE_FOLLOWING_LINES 0052 0053 template< class Layout > 0054 struct inverse_layout 0055 { 0056 typedef normal_layout type; 0057 }; 0058 0059 template<> 0060 struct inverse_layout< normal_layout > 0061 { 0062 typedef mirror_layout type; 0063 }; 0064 0065 #endif // BOOST_BIMAP_DOXYGEN_WILL_NOT_PROCESS_THE_FOLLOWING_LINES 0066 0067 } // namespace relation 0068 } // namespace bimaps 0069 } // namespace boost 0070 0071 #endif // BOOST_BIMAP_RELATION_DETAIL_PAIR_LAYOUT_HPP 0072
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |