sequence_tag.rst

来自「C++的一个好库。。。现在很流行」· RST 代码 · 共 75 行

RST
75
字号
.. Sequences/Intrinsic Metafunctions//sequence_tag

sequence_tag
============

Synopsis
--------

.. parsed-literal::
    
    template<
          typename X
        >
    struct sequence_tag
    {
        typedef |unspecified| type;
    };



Description
-----------

``sequence_tag`` is a |tag-metafunction| for all |tag dispatched| 
`intrinsic sequence operations`__.

__ `Intrinsic Metafunctions`_


Header
------

.. parsed-literal::
    
    #include <boost/mpl/sequence_tag.hpp>


Parameters
----------

+---------------+-------------------+-----------------------------------------------+
| Parameter     | Requirement       | Description                                   |
+===============+===================+===============================================+
| ``X``         | Any type          | A type to obtain a sequence tag for.          |
+---------------+-------------------+-----------------------------------------------+


Expression semantics
--------------------

For any arbitrary type ``x``:


.. parsed-literal::

    typedef sequence_tag<x>::type tag; 

:Return type:
    A type.

:Semantics:
    ``tag`` is an unspecified tag type for ``x``.


Complexity
----------

Amortized constant time.


See also
--------

`Intrinsic Metafunctions`_, |Tag Dispatched Metafunction|

⌨️ 快捷键说明

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