CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions
edm::refhelper::FindUsingAdvance< C, T > Struct Template Reference

#include <RefTraits.h>

Public Types

typedef C const & first_argument_type
 
typedef T const * result_type
 
typedef unsigned int second_argument_type
 

Public Member Functions

result_type operator() (first_argument_type iContainer, second_argument_type iIndex)
 

Detailed Description

template<typename C, typename T>
struct edm::refhelper::FindUsingAdvance< C, T >

Definition at line 14 of file RefTraits.h.

Member Typedef Documentation

◆ first_argument_type

template<typename C , typename T >
typedef C const& edm::refhelper::FindUsingAdvance< C, T >::first_argument_type

Definition at line 15 of file RefTraits.h.

◆ result_type

template<typename C , typename T >
typedef T const* edm::refhelper::FindUsingAdvance< C, T >::result_type

Definition at line 17 of file RefTraits.h.

◆ second_argument_type

template<typename C , typename T >
typedef unsigned int edm::refhelper::FindUsingAdvance< C, T >::second_argument_type

Definition at line 16 of file RefTraits.h.

Member Function Documentation

◆ operator()()

template<typename C , typename T >
result_type edm::refhelper::FindUsingAdvance< C, T >::operator() ( first_argument_type  iContainer,
second_argument_type  iIndex 
)
inline

Definition at line 19 of file RefTraits.h.

References ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it.

19  {
20  typename C::const_iterator it = iContainer.begin();
21  std::advance(it, static_cast<typename C::size_type>(iIndex));
22  return it.operator->();
23  }