LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
lar::details::RangeTraits< Range > Struct Template Reference

#include "CollectionView.h"

Public Types

using range_t = Range
 
using traits_t = RangeTraits< range_t >
 
using begin_iterator_t = std::decay_t< decltype(traits_t::getCBegin(std::declval< range_t >()))>
 
using end_iterator_t = std::decay_t< decltype(traits_t::getCEnd(std::declval< range_t >()))>
 

Static Public Member Functions

static auto getCBegin (range_t const &range)
 
static auto getCEnd (range_t const &range)
 

Detailed Description

template<typename Range>
struct lar::details::RangeTraits< Range >

Definition at line 102 of file CollectionView.h.

Member Typedef Documentation

template<typename Range >
using lar::details::RangeTraits< Range >::begin_iterator_t = std::decay_t<decltype(traits_t::getCBegin(std::declval<range_t>()))>

Definition at line 115 of file CollectionView.h.

template<typename Range >
using lar::details::RangeTraits< Range >::end_iterator_t = std::decay_t<decltype(traits_t::getCEnd(std::declval<range_t>()))>

Definition at line 116 of file CollectionView.h.

template<typename Range >
using lar::details::RangeTraits< Range >::range_t = Range

Definition at line 103 of file CollectionView.h.

template<typename Range >
using lar::details::RangeTraits< Range >::traits_t = RangeTraits<range_t>

Definition at line 104 of file CollectionView.h.

Member Function Documentation

template<typename Range >
static auto lar::details::RangeTraits< Range >::getCBegin ( range_t const &  range)
inlinestatic

Definition at line 105 of file CollectionView.h.

References util::cbegin().

106  {
107  using std::cbegin;
108  return cbegin(range);
109  }
decltype(auto) constexpr cbegin(T &&obj)
ADL-aware version of std::cbegin.
Definition: StdUtils.h:85
template<typename Range >
static auto lar::details::RangeTraits< Range >::getCEnd ( range_t const &  range)
inlinestatic

Definition at line 110 of file CollectionView.h.

References util::cend().

111  {
112  using std::cend;
113  return cend(range);
114  }
decltype(auto) constexpr cend(T &&obj)
ADL-aware version of std::cend.
Definition: StdUtils.h:93

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