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

📄 joint_view.rst

📁 C++的一个好库。。。现在很流行
💻 RST
字号:
.. Sequences/Views//joint_view

joint_view
==========

Synopsis
--------

.. parsed-literal::
    
    template<
          typename Sequence1
        , typename Sequence2
        >
    struct joint_view
    {
        // |unspecified|
        // |...|
    };



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

A view into the sequence of elements formed by concatenating ``Sequence1`` 
and ``Sequence2`` elements. 


Header
------

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


Model of
--------

* |Forward Sequence|


Parameters
----------

+-----------------------+---------------------------+-----------------------------------+
| Parameter             | Requirement               | Description                       |
+=======================+===========================+===================================+
| ``Sequence1``,        | |Forward Sequence|        | Sequences to create a view on.    |
| ``Sequence2``         |                           |                                   |
+-----------------------+---------------------------+-----------------------------------+

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

|Semantics disclaimer...| |Forward Sequence|.

In the following table, ``v`` is an instance of ``joint_view``, ``s1`` and ``s2`` are arbitrary 
|Forward Sequence|\ s.

+-------------------------------+-----------------------------------------------------------+
| Expression                    | Semantics                                                 |
+===============================+===========================================================+
| .. parsed-literal::           | A lazy |Forward Sequence| of all the elements in the      |
|                               | ranges |begin/end<s1>|, |begin/end<s2>|.                  |
|    joint_view<s1,s2>          |                                                           |
|    joint_view<s1,s2>::type    |                                                           |
+-------------------------------+-----------------------------------------------------------+
| ``size<v>::type``             | The size of ``v``;                                        |
|                               | ``size<v>::value == size<s1>::value + size<s2>::value``;  |
|                               | linear complexity; see |Forward Sequence|.                |
+-------------------------------+-----------------------------------------------------------+

Example
-------

.. parsed-literal::
    
    typedef joint_view<
          range_c<int,0,10>
        , range_c<int,10,15>
        > numbers;
    
    BOOST_MPL_ASSERT(( equal< numbers, range_c<int,0,15> > ));


See also
--------

|Sequences|, |Views|, |filter_view|, |transform_view|, |zip_view|, |iterator_range|

⌨️ 快捷键说明

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