Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of Boost. Click here to view this page for the latest version.
PrevUpHomeNext
copy
Description

A metafunction returning the result type of applying copy, which is always void.

Synopsis
template <typename Seq1, typename Seq2>
struct copy
{
    typedef void type;
};

Table 1.38. Parameters

Parameter

Requirement

Description

Seq1

A model of Forward Sequence

Operation's argument

Seq2

A model of Forward Sequence

Operation's argument


Expression Semantics
result_of::copy<Seq1, Seq2>::type

Return type: void iff both of Seq1 and Seq2 are sequence. Otherwise, none.

Semantics: Returns the return type of copy for 2 sequences of types Seq1 and Seq2.

Complexity

Constant.

Header
#include <boost/fusion/algorithm/auxiliary/copy.hpp>
#include <boost/fusion/include/copy.hpp>

PrevUpHomeNext