⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 metafunctions-trivial.rst

📁 C++的一个好库。。。现在很流行
💻 RST
字号:

The MPL provides a number of |Trivial Metafunction|\ s that a nothing more than
thin wrappers for a differently-named class nested type members. While important
in the context of `in-place metafunction composition`__, these metafunctions have
so little to them that presenting them in the same format as the rest of the
compoments in this manual would result in more boilerplate syntactic baggage than
the actual content. To avoid this problem, we instead factor out the common 
metafunctions' requirements into the `corresponding concept`__ and gather all of 
them in a single place |--| this subsection |--| in a compact table form that is 
presented below.

__ `Composition and Argument Binding`_
__ `Trivial Metafunction`_


Trivial Metafunctions Summary
=============================

In the following table, ``x`` is an arbitrary class type.

.. |first| replace:: |``first``|__
.. |``first``| replace:: :refentry:`first`

__ `trivial-first`_

.. |second| replace:: |``second``|__
.. |``second``| replace:: :refentry:`second`

__ `trivial-second`_


.. |base| replace:: |``base``|__
.. |``base``| replace:: :refentry:`base`

__ `trivial-base`_



.. _`trivial-first`:
.. _`trivial-second`:
.. _`trivial-base`:


+---------------------------+-------------------------------------------+
| Metafunction              | Header                                    |
+===========================+===========================================+
| ``first<x>::type``        | ``#include <boost/mpl/pair.hpp>``         |
+---------------------------+-------------------------------------------+
| ``second<x>::type``       | ``#include <boost/mpl/pair.hpp>``         |
+---------------------------+-------------------------------------------+
| ``base<x>::type``         | ``#include <boost/mpl/base.hpp>``         |
+---------------------------+-------------------------------------------+


See Also
--------

|Metafunctions|, |Trivial Metafunction|

.. |Trivial Metafunctions| replace:: `Trivial Metafunctions`__
__ `Trivial`_

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -