LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
|
Trait of a type that can be used to reference the collection Coll
.
More...
#include "ContainerMeta.h"
Public Types | |
using | type = std::reference_wrapper< std::remove_reference_t< Coll > > |
Static Public Member Functions | |
static auto | make (std::remove_reference_t< Coll > &coll) |
Trait of a type that can be used to reference the collection Coll
.
Coll | type of the collection to be referenced |
The goal is to have an object with access to the data of the collection of type Coll
: this object should be able to be copied, but should not duplicate (copy) the data. The most versatile solution is to have a reference to Coll
, and in particular std::reference_wrapper
does the job. But in some special cases Coll
itself will do already, as it is for a bare C pointer.
This trait describes a type with these characteristics, privileging the simplest solution.
Definition at line 99 of file ContainerMeta.h.
|
inherited |
Definition at line 275 of file ContainerMeta.h.
|
inlinestaticinherited |
Definition at line 276 of file ContainerMeta.h.