All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Functions
lar::dump::details Namespace Reference

Functions

template<typename Coll >
auto ptr_cbegin (Coll const &v)
 
template<typename T >
std::add_const_t< T > * ptr_cbegin (T *ptr)
 
template<typename Stream , typename Array >
void dumpArray (Stream &&out, Array &&a, size_t n)
 Inserts n of elements of a in the specified stream. More...
 

Function Documentation

template<typename Stream , typename Array >
void lar::dump::details::dumpArray ( Stream &&  out,
Array &&  a,
size_t  n 
)

Inserts n of elements of a in the specified stream.

Definition at line 37 of file DumpUtils.h.

37  {
38  out << "{";
39  if (n == 0) { out << "}"; return; }
40  auto it = ptr_cbegin(a);
41  out << " " << *it;
42  std::size_t i = 0;
43  while (++i < n) out << "; " << (*++it);
44  out << " }";
45  } // dumpArray()
process_name gaushit a
auto ptr_cbegin(Coll const &v)
Definition: DumpUtils.h:29
template<typename Coll >
auto lar::dump::details::ptr_cbegin ( Coll const &  v)

Definition at line 29 of file DumpUtils.h.

29 { using std::cbegin; return cbegin(v); }
auto cbegin(FixedBins< T, C > const &) noexcept
Definition: FixedBins.h:567
template<typename T >
std::add_const_t<T>* lar::dump::details::ptr_cbegin ( T *  ptr)

Definition at line 32 of file DumpUtils.h.

32 { return ptr; }