fpmas 1.6
Public Member Functions | List of all members
fpmas::utils::Concat Struct Reference

#include <functional.h>

Public Member Functions

template<typename Container >
Container operator() (Container &init, const Container &c) const
 

Detailed Description

A function object that can be used to concatenate two containers.

Member Function Documentation

◆ operator()()

template<typename Container >
Container fpmas::utils::Concat::operator() ( Container &  init,
const Container &  c 
) const
inline

Call operator.

Elements of c are inserted at the end of init, that is finally returned.

In order to avoid useless copies, init is moved upon return.

Parameters
initcurrent container, in which items of c will be inserted.
citems to add to init
Returns
concatenation of init and c
Template Parameters
Containercontainer type (automatically deduced in most contexts)

The documentation for this struct was generated from the following file: