mirror of
https://github.com/boostorg/fusion.git
synced 2025-07-30 12:37:29 +02:00
doc: Moved paragraph to mpl adaptation
to mpl section
This commit is contained in:
@ -23,19 +23,6 @@ various data structures, non-intrusively, as full fledged Fusion sequences.
|
|||||||
#include <boost/fusion/adapted.hpp>
|
#include <boost/fusion/adapted.hpp>
|
||||||
#include <boost/fusion/include/adapted.hpp>
|
#include <boost/fusion/include/adapted.hpp>
|
||||||
|
|
||||||
Fusion sequences may also be adapted as fully conforming __mpl__ sequences (see
|
|
||||||
__intrinsics__). That way, we can have 2-way adaptation to and from __mpl__ and
|
|
||||||
Fusion. To make Fusion sequences fully conforming __mpl__ sequences, include:
|
|
||||||
|
|
||||||
#include <boost/fusion/mpl.hpp>
|
|
||||||
|
|
||||||
If you want bi-directional adaptation to and from __mpl__ and Fusion, simply
|
|
||||||
include:
|
|
||||||
|
|
||||||
#include <boost/fusion/include/mpl.hpp>
|
|
||||||
|
|
||||||
The header includes all the necessary headers.
|
|
||||||
|
|
||||||
[section:array Array]
|
[section:array Array]
|
||||||
|
|
||||||
This module provides adapters for arrays. Including the module
|
This module provides adapters for arrays. Including the module
|
||||||
@ -145,6 +132,21 @@ header makes all __mpl__ sequences fully conforming fusion sequences.
|
|||||||
std::cout << __at_c__<0>(v) << std::endl;
|
std::cout << __at_c__<0>(v) << std::endl;
|
||||||
std::cout << __at_c__<1>(v) << std::endl;
|
std::cout << __at_c__<1>(v) << std::endl;
|
||||||
|
|
||||||
|
[heading Bi-directional adaptation]
|
||||||
|
|
||||||
|
Fusion sequences may also be adapted as fully conforming __mpl__ sequences (see
|
||||||
|
__intrinsics__). That way, we can have 2-way adaptation to and from __mpl__ and
|
||||||
|
Fusion. To make Fusion sequences fully conforming __mpl__ sequences, include:
|
||||||
|
|
||||||
|
#include <boost/fusion/mpl.hpp>
|
||||||
|
|
||||||
|
If you want bi-directional adaptation to and from __mpl__ and Fusion, simply
|
||||||
|
include:
|
||||||
|
|
||||||
|
#include <boost/fusion/include/mpl.hpp>
|
||||||
|
|
||||||
|
The header includes all the necessary headers.
|
||||||
|
|
||||||
[heading See also]
|
[heading See also]
|
||||||
|
|
||||||
__mpl__
|
__mpl__
|
||||||
|
Reference in New Issue
Block a user