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 a snapshot of the master branch, built from commit 0bd9e66d9e.
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