]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/libs/hana/include/boost/hana/fwd/adapt_adt.hpp
bump version to 12.2.2-pve1
[ceph.git] / ceph / src / boost / libs / hana / include / boost / hana / fwd / adapt_adt.hpp
CommitLineData
7c673cae
FG
1/*!
2@file
3Documents the `BOOST_HANA_ADAPT_ADT` macro.
4
5@copyright Louis Dionne 2013-2016
6Distributed under the Boost Software License, Version 1.0.
7(See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
8 */
9
10#ifndef BOOST_HANA_FWD_ADAPT_ADT_HPP
11#define BOOST_HANA_FWD_ADAPT_ADT_HPP
12
13#include <boost/hana/config.hpp>
14
15
16BOOST_HANA_NAMESPACE_BEGIN
17 // Note:
18 // The weird definition as a variable seems to exploit a glitch in Doxygen
19 // which makes the macro appear in the related objects of Struct (as we
20 // want it to).
21
22 //! Defines a model of `Struct` with the given accessors.
23 //! @ingroup group-Struct
24 //!
25 //! Using this macro at _global scope_ will define a model of the `Struct`
26 //! concept for the given type. This can be used to easily adapt existing
27 //! user-defined types in a ad-hoc manner. Unlike `BOOST_HANA_ADAPT_STRUCT`,
28 //! this macro requires specifying the way to retrieve each member by
29 //! providing a function that does the extraction.
30 //!
31 //! @note
32 //! This macro only works if the tag of the user-defined type `T` is `T`
33 //! itself. This is the case unless you specifically asked for something
34 //! different; see `tag_of`'s documentation.
35 //!
36 //!
37 //! Example
38 //! -------
39 //! @include example/adapt_adt.cpp
40#ifdef BOOST_HANA_DOXYGEN_INVOKED
41 auto BOOST_HANA_ADAPT_ADT(...) = ;
42 #define BOOST_HANA_ADAPT_ADT(Name, ...) see documentation
43#else
44 // defined in <boost/hana/adapt_adt.hpp>
45#endif
46BOOST_HANA_NAMESPACE_END
47
48#endif // !BOOST_HANA_FWD_ADAPT_ADT_HPP