OpenFPM_pdata  4.1.0
Project that contain the implementation of distributed structures
 
Loading...
Searching...
No Matches
add_prp_impl< OBJECT_ADD, vect_dst > Struct Template Reference

struct to merge two vectors More...

Detailed Description

template<typename vect_dst>
struct add_prp_impl< OBJECT_ADD, vect_dst >

struct to merge two vectors

Definition at line 53 of file map_vector_std.hpp.

#include <map_vector_std.hpp>

Static Public Member Functions

template<typename S , typename M , typename gp , unsigned int impl, unsigned int ... args>
static void add (const vector< S, M, memory_traits_lin, gp, impl > &v_src, vect_dst &v_dst)
 It add the element of a source vector to a destination vector.
 

Member Function Documentation

◆ add()

template<typename vect_dst >
template<typename S , typename M , typename gp , unsigned int impl, unsigned int ... args>
static void add_prp_impl< OBJECT_ADD, vect_dst >::add ( const vector< S, M, memory_traits_lin, gp, impl > &  v_src,
vect_dst &  v_dst 
)
inlinestatic

It add the element of a source vector to a destination vector.

The number of properties in the source vector must be smaller than the destination all the properties of S must be mapped so if S has 3 properties 3 numbers for args are required

Template Parameters
SBase object of the source vector
Mmemory type of the source vector
gpGrow policy of the source vector
argsone or more number that define which property to set-up
Parameters
v_srcvector to merge
v_dstvector to merge and result of the merge

Definition at line 70 of file map_vector_std.hpp.


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