CMS 3D CMS Logo

Public Types | Public Member Functions

edm::refhelper::FindUsingAdvance< C, T > Struct Template Reference

#include <RefTraits.h>

List of all members.

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 13 of file RefTraits.h.


Member Typedef Documentation

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

Definition at line 14 of file RefTraits.h.

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

Definition at line 16 of file RefTraits.h.

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

Definition at line 15 of file RefTraits.h.


Member Function Documentation

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 18 of file RefTraits.h.

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